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
1
vote
0 answers

TextView with clickablespan throwing exception on long click

I've a TextView in my app where every word is a clickable span. Everything works fine until I long click any word, which throws the following exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int…
Shahood ul Hassan
  • 745
  • 2
  • 9
  • 19
1
vote
1 answer

RecyclerView children don't clicking when actionmode is opened

I have an item which has apple, pear and lemon. I made separate layouts for apples, pears and lemons by using ViewStub. I connect the model directly to the adapter via ItemView. Activity actionMode is opening when I doing long click on ItemView and…
propoLis
  • 1,229
  • 1
  • 14
  • 48
1
vote
1 answer

GridView - Fragments - LongClick

I hope that someone can help me :) I have FragmentCategory, where where I change, which places will be shown in GridView. I have always OnClick, but when I have fragment "pending", I want to have also LongClick -> Then I will show MaterialDialog My…
1
vote
1 answer

Selection following LongClick and Click in App Inventor

I would like to delete an item from a list if I LONGCLICK, and move an item to another list if I just CLICK. Can AfterPicking make the difference between those two click types, and then carry out the respective actions? Any other solution to the…
Steven
  • 289
  • 2
  • 5
  • 14
1
vote
1 answer

Android: Menù popup with long click?

I need to implement a menù that appears with a long click around a button, so the user can choose with option he wants to take simply sliding toward a certain direction. Is there any way to do that? I have just a setOnLongClickListener with a…
GondraKkal
  • 87
  • 2
  • 16
1
vote
1 answer

onLongClick animation with AsyncTask

I would like to start animation when view is long clicked. The code is as follows. public class Example_Dialog extends Dialog implements AnimationListener{ TextView view_Description1 = null; View view_Button1 = null; …
fuji
  • 11
  • 1
1
vote
0 answers

Android - force listview items to use default long click animation

I have a ListView with custom Adapter that includes RadioButton. My app allows users to long click on every row of ListView (via OnLongClickListener in Adapter, not via OnItemLongClickListener on ListView), but it isn't animating in the default way.…
Andret2344
  • 653
  • 1
  • 12
  • 33
1
vote
3 answers

Angular Ng-click function does not work in button

I want to navigate from one page to another page when I'm click the 'Sorgula' button. I wrote ng-click function and add controller but doesn't work. [![enter image description here][1]][1]
cengavera
  • 43
  • 1
  • 9
1
vote
3 answers

Long click method in Appium, Python

Is there any long click method in Appium on Python? I need to long click on the area in my program. def testDevice1(self): password = self.driver.find_element_by_id('com.e.eas.android:id/password') password.send_keys('111111') …
user2771350
  • 37
  • 1
  • 7
1
vote
1 answer

Detect long click on tablet with ng-click or jquery

Hi I've got follow div: angular.module("myApp", ['ngTouch']).controller("myController", function($scope) { $scope.longClick = function() { console.log('I was clicked long'); } }); .longClick { width: 200px; height: 20px; …
webta.st.ic
  • 4,781
  • 6
  • 48
  • 98
1
vote
1 answer

OnLongClick listener is not working with zoomable Image in Android

I am developing an Android app. In my app, I am using image view that can be zoomed and pop up download option dialog like in Facebook. But I am having a problem with my code. The problem is when I set onLongClick listener on my image view,…
1
vote
1 answer

Trigger multiple selection on long click

I'm building a File manager on android platform.I want my users to be able to select multiple files on long click on a file.How to do it?(In list view) Thanks in advance.
Raghava Dhanya
  • 959
  • 15
  • 22
1
vote
1 answer

show Action Mode as LongClick on ListView in android

I want to show ActionMode menu (for having more options) with LongClicking on each rows of my ListView in my proje. but as I click on them, nothing happen. note: I use this tutorial for writing this code:…
user4568864
1
vote
1 answer

Long click confirmation (vibration)

In my app, some views react to onLongClick. In others, I want to achieve the same functionality, but I want to know which part of the view was long-clicked -- so I'm simulating it with onTouchEvent. The default device behavior on the long click is…
user1334767
  • 587
  • 4
  • 17
1
vote
1 answer

Pinterest long click on image and display button

I dont know how to achieve this effect on long click. Long click on image in pinterest android app. Three buttons sliding from red ring to left. Edit: like this https://github.com/GnosisHub/GHContextMenu
user3284206