long-click Questions

4

I'm working with a ListFragment and doing a onListItemClick. Everything works fine, but now I want to use a long Item Click (e.g setOnItemLongClickListener(new OnItemLongClickListener() for an Acti...
Crittenden asked 18/7, 2011 at 12:5

11

Solved

I am currently using onTouchEvent(MotionEvent event) { } to detect when the user presses my glSurfaceView is there a way to detect when a long click is made. I'm guessing if I can't find much in th...
Erme asked 27/10, 2011 at 17:25

7

Solved

I have a list view connected to a database, showing a all the entries. I want a menu to show up if the user long clicks a item in the listview(database entry), showing options to edit or delete the...
Solus asked 20/6, 2013 at 7:9

2

Solved

Coming from a Java background I am used to dealing with actions though I'm not really sure why the method requires a boolean is returned and don't fully understand the explanation given on the site...
Splenetic asked 1/9, 2012 at 18:54

1

I would like to show a tooltip, i.e. additional non-essential information about a View when the user long-clicks on it. The two options I see in front of me are using an OnLongClickListener to co...
Closegrained asked 19/2, 2011 at 0:17

2

Solved

I am having a problem with the webview selection on longClick. I already had an implementation of a customized menu that launches on longClick. But the default menu is launching as well. I am tryin...
Grane asked 7/8, 2017 at 7:13

5

Solved

I have below codes: public class MainActivity extends ListActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ma...
Toogood asked 5/7, 2015 at 5:23

3

Solved

My AngularJS app needs to be able to detect both the start and stop of a touch event (without swiping). For example, I need to execute some logic when the touch begins (user presses down their fing...
Duodecimo asked 14/11, 2013 at 18:8

1

My application playing HTML promotions in WebView, Html promotions having text so if user press long click android standard dialog appear Copy/Share/Find/Web Search, so is there any option to disab...

1

Solved

I've got a RecyclerView with a ActionMode which can be activated by a long click on a RecyclerView item. How to trigger a long click in Android with Xamarin UI tests? AndroidApp contains a method ...
Mistress asked 1/10, 2015 at 9:50

2

Solved

When an action item is long-clicked, a Toast without text is show below the action item. Can I disable the Toast? Thanks you.
Clown asked 8/6, 2012 at 9:46

3

Solved

I have a custom View with bitmaps on it that the user can drag about. I want to make it so when they long click one of them I can pop up a context menu with options such as reset position etc. I...

3

Solved

I am using css columns to display contents in android webview. I used longclicklistner {return true}; with this I was able to disable longclick in phones but it doesn't seem to work in tabs(eg gala...

1

I'm painfully new to android and I've run into a wall. I'm trying get a linear layout to function more like a button, with different actions for press and long press - The reason being so I can ha...

1

Solved

I am looking for a way to disable the task manager window once I long press on the home button. I managed to disable other device keys (such as volume, menu etc) and the normal click on the home bu...
Hyperesthesia asked 9/8, 2012 at 11:39

0

I am looking for Android 'trick' to change the functionality of the long click on the home button. Currently, long click on the home button open the task manager. Instead, I want the long click to ...
Herbivore asked 23/9, 2012 at 16:42

8

How do I long click on a mapview so that a place marker appears at that point on the map? I tried a couple ways without success: 1) Using setOnLongClickListener on the MapvView which never dete...
Coextensive asked 5/11, 2009 at 5:15

3

Solved

How do you implement a context menu triggered by a long click or tap on a ListActivity that is using the built in layouts and a ListAdapter?
Chemisorb asked 11/1, 2009 at 21:32
1

© 2022 - 2025 — McMap. All rights reserved.