Languages

Menu
Sites
Language
Tap-and-drag button for wearable apps?

When a phone call comes in on my Active2 watch, the UI that pops up has a button on each side of the screen, one to dismiss the call and the other to answer the call.  However, to avoid accidentally pressing either button, just tapping on the button does not perform that action.  Instead, you have to tap the button then drag (or slide) your finger away from the button some minimum distance before releasing your finger.  Then the action is performed.

Does the Tizen .NET API have a button control that has this behavior?  I want to use it to guard against accidental taps in my app.

Responses

3 Replies
Tizen .NET

Hi thank you for reaching us.

I think you can use the SwipeView.

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/swipeview
 

David Jackman

No, I don't think that's what I'm looking for.  SwipeView is designed to display some content then reveal additional content (like buttons) when the user taps and slides the content to the left or right.  If I used a SwipeView for what I'm describing, the user would have to tap and swipe in a specific direction to reveal a button then lift his finger then tap on the button.  That is not how the tap-and-swipe buttons work in the UI displayed when a phone call comes in.  In that UI there are two round buttons being displayed.  When you tap one of the buttons, it shows a circle around that button and the user is supposed to swipe his finger at least as far as that displayed circle before releasing.  The swipe doesn't reveal anything and the user doesn't have to do anything more after swiping and releasing.  Once the tap, swipe, and release is complete then I'd expect this control to fire its Clicked event.  (I would expect this to be a control, not really a view.)

Is there any control that does this?

Tizen .NET

Sorry for misunderstanding.
Unfortunately, we don't have the similar widget like what you have described.
It is suggested to create a custom widget that combines buttons(views) and gestures, maybe `ImageButton` and `PanGesture`, to implement that behavior in your application.
Thanks.