if the user keeps pressing the button for some time, a different action is executed from the short press action.
Questions tagged [long-press]
308 questions
0
votes
1 answer
UILongPressGesture to Touches Moved in subview
I have a UIViewController and have added a UILongPressGestureRecognizer which when is recognised adds a subview on top which covers the UIViewController and pass the coordinates of the press to the subview and adds an image where the press was.…

jodm
- 2,607
- 3
- 25
- 40
0
votes
2 answers
List Item longClickListener open dialog is not working in android?
i am working on list , in this list setOnItemLongClickListener write the code part ,user long press to open dialog but dialog is not open ?please send any suggestion for open dialog?
listshipments.setOnItemLongClickListener(new…

Narasimha
- 3,802
- 11
- 55
- 83
0
votes
1 answer
Android WHILE longpress event
How do I perform something while the something is long pressed and something when it is released?
I am using Gesture Detector to handle events

dungeon_master
- 191
- 1
- 1
- 8
0
votes
1 answer
Implementing a long press to share button in android
I am trying to a make an app that has just one button . When you press it plays a sound and when you LONG press it , It gives you the option to share . The app is working without any errors .. but the share option just wont open . And the button…

Shamik
- 11
- 7
0
votes
1 answer
Android - How to know the long-pressed text in the TextView?
As the title says, I am wondering how to know the long pressed text in the TextView.
caption.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
Log.d("log", "caption clicked");
…

user2062024
- 3,541
- 7
- 33
- 44
0
votes
1 answer
Longpress on mapview returns GeoPoint that is below the area that is actually longpressed
It seems that longpress on google mapview returns a GeoPoint below the area that is actually longpressed.
If for example I pressed on (x,y):
Geopoint longpressLocation.getLatitudeE6().getLatitudeE6() = x
Geopoint…

David
- 37,109
- 32
- 120
- 141
0
votes
1 answer
Delete on LongPress
I have implemented my code to delete and change the view on long press of a gridview. Here is my updated code. Now I have a problem when I long press then I have to change all the items image( I am adding a view more to all on long press - i.e a…

Gaurav Arora
- 8,282
- 21
- 88
- 143
0
votes
1 answer
Android Long Press
I have to implement a functionality in my application. It is just like iphone native functionality when we long press on any app icon then delete button should appear on all the icons and they can be deletable. Is this possible in Android?? Please…

Gaurav Arora
- 8,282
- 21
- 88
- 143
0
votes
1 answer
Need to add an option like "add word to dictionary" in longpress context menu
Planned to implement a global context menu for text(Editext, Textview).
A new option should be there to add the selected word to my wordcollector kind of application.
How to add the above option to global context menu.

Satheesh
- 646
- 1
- 10
- 33
0
votes
2 answers
Override menu key long press and launch an application on long press
I want to do something like this-
1.Override the default action of the menu key long press (i.e. launching soft keyboard).
2.Whenever user long presses the menu key, my application will be launched.
3.Moreover, my application may not need to be in…

Rajkiran
- 15,845
- 24
- 74
- 114
0
votes
1 answer
Initiate zoom within an Android WebView from a longpress
I am looking for a way to replicate the native WebView zoom on double-tap but triggered via a long press instead. As, with the double-tab zoom I'd like the zoom to scale centered around the point of touch and then be able to scale back out to the…

Rex Remus
- 171
- 1
- 9
-1
votes
1 answer
Button2 Library isPressed() method return inverted?
I am using two buttons on a teensy 4.1 MCU to control a robot. I want to add debouncing (and further stuff like longpress etc.) and decided on the library Button2 link to Repo, which is apparently quite popular for this type of tasks.
The buttons…

L. Merbecks
- 21
- 3
-1
votes
1 answer
Dynamic list of image in row with wrap (no space between) that allow for Long-pressing an image to open Edit options - Flutter
I'm receiving a list of images that I want to display dynamically in rows of 4 items each row. If there are 5 itens the row should wrap. The thing is, I need the images to allow for a longpress click that opens edit buttons in the appBar. Besides…

Leonidas Yopan
- 119
- 1
- 11
-1
votes
1 answer
TouchableOpacity onLongPress not working on android
i have been trying to use a TouchableOpacity inside a react-native-maps Marker heres the code:

Surafel
- 675
- 4
- 11
- 24
-1
votes
2 answers
A Label in C# That has a long press
Hi Ive got a label on my form that i want to press for 2.5 seconds before it does a function like display a message box I tried Using mouse down and mouse up but without success it didn't wait for the time i told it to. Anything would help.Thanks.
…

Joe McNally
- 23
- 4