long-press Questions

16

I have a button in SwiftUI and I would like to be able to have a different action for "tap button" (normal click/tap) and "long press". Is that possible in SwiftUI? Here is the simple code for th...
Phene asked 8/10, 2019 at 10:56

5

Solved

The default spinner behavior is that when it's "closed", longpressing on it will "open" it and show you the dropdown view. I find this behavior to be potentially very problematic for the user. For ...
Corelation asked 13/1, 2015 at 13:25

5

Solved

I want to wire an action such that if the gesture is a tap, it does animates an object in a particular way but if the press duration was more than .5 secs it does something else. Right now, I just...
Negrito asked 21/1, 2015 at 1:20

11

Solved

I would like to handle a long press on a UITableViewCell to print a "quick access menu". Did someone already do this? Particularly the gesture recognize on UITableView?
Leftwich asked 13/10, 2010 at 13:55

5

Solved

I would like to recognize a TapGesture and LongPressGesture on the same item. And it works fine, with the following exception: the LongPressGesture alone responds after the duration I specify, whic...
Hiatus asked 28/3, 2021 at 17:34

3

Hi everyone (why my greeting message is always deleted ??? !!! ) Even I read many topics about it, I didn't find a proper answer about my issue. I would like to know if it's possible to disable...
Bani asked 4/9, 2016 at 18:51

4

Solved

I'm trying to override the functionality of the back key press. When the user presses it once, I want it to come back to the previous screen. However, when the back key is long-pressed (for, let's ...
Threnode asked 22/11, 2011 at 12:24

0

I am able to get the start of a long press via touchstart event. However, it doesn't trigger touchend after the long press is completed, when the right click menu appears nor when the right click m...
Equivocation asked 20/4, 2022 at 9:22

1

Solved

I've searched high and low and I'm beginning to think this isn't possible, but I have a custom ListView which is in an inflated layout and put onto a popup window. The lines are made from a layout ...
Kery asked 20/2, 2021 at 0:29

2

Solved

Could you please let me know how can I recognize long press gesture in Xamarin Forms application? This is my xaml page which i created referring to this thread: Xamarin.forms.DataGrid <Content...
Disclaim asked 12/12, 2018 at 7:55

9

Solved

I want to emulate a long a press button, how can I do this? I think a timer is needed. I see UILongPressGestureRecognizer but how can I utilize this type?
Dasher asked 30/5, 2011 at 17:52

4

In my activity I have a web view and in manifest.xml I have declared intent filter like this <activity android:name=".ui.socialNetwork.MySocialNetworkActivity" android:configChanges="orient...
Doordie asked 9/11, 2016 at 11:0

5

Need Help I'm trying to download pics from webview by long pressing photos, when I tested long press action with a toast message, it worked But it's not downloading. private View.OnLongClickLis...
Kierakieran asked 17/10, 2016 at 18:4

6

Solved

I want to be able to reorder tableview cells using a longPress gesture (not with the standard reorder controls). After the longPress is recognized I want the tableView to essentially enter 'edit mo...
Urey asked 4/9, 2012 at 4:55

2

I'm trying to create a context menu that is displayed after a long press whilst keeping your finger held on the object, afterwards you would select an option (by dragging your finger) and lift it t...
Pontic asked 19/5, 2018 at 15:33

2

Solved

I'm working on a mobile application where I'm trying to combine jQuery UI's draggable functionality with jQuery Mobile's taphold event. The idea is that an element becomes draggable when a taphold ...

9

Is some possible way how to hide the toast after long-press on the ActionBar item? I didn't setup a title for the item but it is still there - empty toast. <item android:id="@+id/ab_main_men...

1

I am new to android development. Trying to make a tile service, but I have trouble to overriding the default long press action. For that, I have a class called QSTileService which extends TileServ...
Effuse asked 10/3, 2017 at 16:27

2

Solved

I have attached a UILongPressGestureRecognizer to a Collection View with the aim of the user hold finger on a cell in the table and being asked if they want to remove it. The problem I have is tha...
Earhart asked 17/7, 2013 at 10:47

9

I'm currently fiddling around with Android programming, but I have a small problem detecting different touch events, namely a normal touch press (press on the screen and release right away), a long...
Robrobaina asked 1/12, 2010 at 12:31

4

Solved

Anyone has ever come into the problem that UITableView need long press to trigger the didSelectRowAtIndexPath method?
Rasp asked 14/11, 2013 at 6:9

5

Solved

I'm building an iPhone app that would let the user rearrange some of the UI elements on the screen. How can I add a tap gesture recognizer and a long press gesture recognizer to the same UIView? ...
Acidosis asked 15/3, 2012 at 21:42

1

Solved

I have defined longPress and Pan gesture recognizers at viewController class level as below: var touch = UILongPressGestureRecognizer() var pan = UIPanGestureRecognizer() Then I create a simple ...
Bubaline asked 24/2, 2015 at 14:35

3

I'm working on the Minesweeper game, I want to add the flag when user long tap on a tile of the gameboard. I've implemented this code: For every button in gameboard: UILongPressGestureRecognizer ...
Toper asked 18/6, 2014 at 8:42

5

Has anyone implemented Tap & Hold in a Windows Phone 7 App yet? I can see a couple of possible approaches KeyDown/KeyUp and a timer or ManipulationStarted/manipulationCompleted and a timer. How...
Shrievalty asked 28/7, 2010 at 23:59

© 2022 - 2025 — McMap. All rights reserved.