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
0
votes
3 answers

Android long press system back button listener

I want to add a listener for when the android system back button is long pressed i.e. a long press version of Activity.onBackPressed This only needs to work when my app is visible. Chrome shows the history menu when back is long pressed so it must…
MeatPopsicle
  • 832
  • 13
  • 28
0
votes
2 answers

TextView handle LongClick, parent handle textview's click

I have a RelativeLayout with a TextView child, when set long click listener for text view, and set click listener for parent layout as below: textview.setOnLongClickListener(new OnLongClickListener() { @Override public…
0
votes
1 answer

Android Long Click vs. Default Click

I have an EditText that is focused and a Button that is not focused. When I click the Button, the EditText loses focus. When I long-click the Button, the EditText does not lose focus. Whats the source of this behaviour? I want to achieve the…
Csharpest
  • 1,258
  • 14
  • 32
0
votes
1 answer

How to know android ViewCell.ContextActions show event?

How do I know if ContextActions appears on my Android device? I would like to receive events that come from a Long Click item in a ListView.
0
votes
1 answer

Disable Reoplening Activitiy Mulitple Times on Map Long Clicks

I am making an app that enables a user to long click on map, and open a new activity that would allow them to add a new tag and info about it. When user long clicks once, if he is fast enough he can long click on the map twice, and the second…
Banana
  • 2,435
  • 7
  • 34
  • 60
0
votes
2 answers

Button long click does not work

I'm working on a soundboard and I want to implement a long click to share the sound. I am working with a switch Case for each button public void MainMMP(View view){ switch (view.getId()) { case R.id.button1: …
ExiizZ
  • 59
  • 1
  • 6
0
votes
1 answer

Android: how do I exclude a CardView's checkbox from a LongClick method?

I have CardViews in a ReyclerView list. I set up so that a LongClick on a CardView launches a DialogFragment. On the CardView is a checkbox and I want to exclude the checkbox from the LongClick method; that is, I don't want the DialogFragment to…
AJW
  • 1,578
  • 3
  • 36
  • 77
0
votes
2 answers

Long Click Does Not Work On ListView rows

I want to be able to long click ListView cells so that an AlertDialog pops up and lets me delete a row in the ListView. However, the long click does not register. I even tried setting userChatroomListView.setLongClickable(true) below is the code. …
Abhi V
  • 714
  • 1
  • 4
  • 19
0
votes
1 answer

how to get a word of view's of another application using longclick

is it possible to get a word of every text or passage in a phone(e.g from other applications) using longclick? for example i want to create a word translator and it must be able to get every word in every where in a phone for translating(an android…
iman kazemayni
  • 1,255
  • 1
  • 19
  • 20
0
votes
1 answer

How to have my ListView catch onLongClick() (not onItemLongClick)

I have a ListView that is refreshed at a high rate (3 times per second). I need to catch a long press on such a ListView (as well as on the parent layout); the ListView has it's height set to wrap_content. I can catch the long click on the parent…
francky
  • 51
  • 6
0
votes
2 answers

jQuery/Javascript - Edit and delete appended elements by different click times

I want to make a list in which the user can add elements by clicking a button, change their colour by one click on the element and delete them with a long click on the element. My code works fine for adding divs and changing their…
peddersen
  • 13
  • 4
0
votes
0 answers

How to perform long click event in j2me blackberry?

In my j2me application for blackberry, I have gridfield and when I click on griditems, I want to select that item with highlighting borders around it which i am able to do it. But now i want to open dialog to select sub category on long press on…
Mihir Shah
  • 1,799
  • 3
  • 29
  • 49
0
votes
1 answer

How to detect headset button long click with broadcast listener?

I use a broadcast receiver for detect headset button actions. I use this code in onReceive function for long click: @Override public void onReceive(Context context, Intent intent) { String intentAction = intent.getAction(); if…
Mehrdad
  • 708
  • 1
  • 17
  • 38
0
votes
1 answer

LongClick in a graph

I am trying to implement a longclick in a graph to set an alarm threshold in there and then the user will be warned if the graph (which reprensents mailboxes) is too important. But my problem comes with long click the normal click is handled but…
Fabr9193
  • 59
  • 1
  • 5
0
votes
5 answers

onItemLongClick is undefined?

I'm trying to implement a long click in my listview item but it doesn't work and i get an error that says is undefined. Here's the code: protected void setOnItemLongClickListener(ListView l, View v, int position, long id) { …
David_D
  • 1,404
  • 4
  • 31
  • 65