Questions tagged [long-click]

In touch based user interfaces a long-click (aka long-press and tap-and-hold) refers to pressing a control for a prolonged time in order to achieve additional functionality.

In touch based user interfaces a long-click (aka long-press and tap-and-hold) refers to pressing a control for a prolonged time in order to achieve additional functionality.

97 questions
2
votes
1 answer

Remove by longclick on row from ListView (SQLite database)

I Try for long hours to delete a row from a listview (SQLite). What I was able to do until now ? Showing all the data by rows on the listview. Long click on one of the rows showing a menu (delete or update). What I could not do until now ? Taking…
Idon89
  • 141
  • 4
  • 16
2
votes
1 answer

Action after long click on listview (Android Studio)

I have a ListView that take the data from sqlite database. Now, I want to set when i long click on some item in the listview, i will can delete or update the item. I success to do the ContextMenu, but i dont know how to make the action after i click…
Idon89
  • 141
  • 4
  • 16
2
votes
1 answer

LongClick to Delete List Item (Using Fragments in Master-Detail)

I've created a Master-Detail Flow application, and I'm using all of the default files that Eclipse/Android creates. I created a project using the template, and haven't modified anything in it, except to add the methods discussed below for deleting…
alu
  • 190
  • 1
  • 9
2
votes
2 answers

Implementing $(this) in a jQuery plugin

I've been looking for developing a long-click plugin to handle such an event in jQuery, and after much research, I've found the best method. I've created the plugin below. It is not a large file, but it covers what I need. There are some problems…
Victor
  • 13,914
  • 19
  • 78
  • 147
2
votes
0 answers

Long click event doesn't fire when also listening for touch

Is there a good way to listen for both Touch and LongClick events? When my touch event fires, the resulting actions are all in a different thread, so code isn't running in the UI thread, but the long click event still doesn't seem to fire. This is…
Wilson
  • 8,570
  • 20
  • 66
  • 101
2
votes
2 answers

ListView Long Click Animation

I would like to capture long click events in a ListView, which was easily done using a OnItemLongClickListener. However, that lacks the fading animation of the selector transitioning to a long press that is seen when the long click is handled by…
kwogger
  • 1,412
  • 1
  • 12
  • 18
2
votes
2 answers

Android: Long-Click text on button

In my android-app I'm trying to create a button with two lines of text. One will display what the button is doing when (short) clicked, the other one should show the effect when long-clicked and that the button can be long-clicked. Just like on the…
Papagaai35
  • 60
  • 6
2
votes
0 answers

Change the long click functionality of the home button

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 act as short click which means take us to the home…
Amir
  • 153
  • 1
  • 1
  • 9
2
votes
3 answers

clicklistener and longclicklistener on the same button?

i am creating a call/dial button, when i click on that call/dial button, a call will be made based on the input that is displayed in the edittext. I managed to do that part. can you guys advise me whether i can do a longer click on that same…
jason
  • 35
  • 2
  • 7
1
vote
0 answers

How to show EditText's context menu on long press when it's inside a gallery?

Possible Duplicate: Android - EditTexts in Gallery show strange behaviour when being (long)-clicked I feel like I should ask my previous question again more precisely and with less blabla. I created a gallery from Google's example:…
m1ntf4n
  • 493
  • 2
  • 14
1
vote
2 answers

Android: why does long-click break auto background?

I am trying to implement a "button" that temporarily changes background on clicking and long-clicking. I implemented a "drawable/selector":
Sean Walton
  • 123
  • 2
  • 11
1
vote
1 answer

Copy/Paste menu items aren't shown on some devices in Android EditText

I have a subclass of Android EditText and it' declared as: ... android:id="@+id/Main.editor" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="left|top" …
4ntoine
  • 19,816
  • 21
  • 96
  • 220
1
vote
1 answer

How to get URL from long click links in a webview?

I want to Create a Context Menu for web view in android. My problem is that I cant get the URL from the clicked link. I write this code for log the clicked link: webView.setOnLongClickListener(new View.OnLongClickListener() { @Override …
1
vote
1 answer

Can I do onTap that doesn't require a longpress, but still have longpress enabled for other events?

Currently I have a series of markers on a google map. I want to be able to get the latitude and longitude from anywhere I longclick on the map and I want to open a message box dialog when I quick click on a marker. My issue is that by setting up…
Geeklat
  • 167
  • 1
  • 2
  • 12
1
vote
1 answer

Blackberry: detect long click on a ListField and display menu

How do you detect a long click on a ListField component? Do you override its navigationClick(int status, int time) and fumble with its time argument (how?) or is there some builtin method for detecting long clicks? And more importantly - how do you…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416