Languages

Menu
Sites
Language
Long click on a button

Hi all, 

do you know if is possible to handle the long tap on a button? 

It looks like that it is not supported, from the properties of the object. I found only this implementation in the website: https://developer.tizen.org/community/code-snippet/native-code-snippet/long-click-implementation is that still the only option?

Does anyone know if it interfere then with the click event? 

 

Responses

3 Replies
K Johnson

As far as I know, there's other options to implement this in Tizen Web. If you're interested then you may check below links:

  1. https://stackoverflow.com/questions/38055894/whether-longpress-supported-in-tizen-wearable-app
  2. https://developer.tizen.org/ko/community/code-snippet/web-code-snippet/how-use-long-touch-event?langredirect=1

Moreover, if you're interested in long tap gesture(in Tizen Native) then you may apply it on a gesture layer object. Please go through Implementing Tap Gestures section in this link for that.

Ivan Gualandri

Hi K. Johnson,

thanks, but my application is written using the native framework, so i can't go for the web versions. 

Anyway i think that using gestures, will end up doing something similar to what is in the code snippet i posted above (And i  start to think that this is the easiest way to do it). 

 

K Johnson

You may give it a try and share your findlings here to help other developers.