onlongclicklistener Questions
7
Solved
I'm adding ImageViews to parent layout dynamically and performing zoom in/out operations with onTouch on the added image.
I want to remove the added view with an onLongPress of it.
img.setOnLongCli...
Frizzell asked 8/6, 2012 at 10:1
5
Solved
I've been trying to set up a long click listener event, but keep getting the following error:
Type mismatch.
Required:Boolean
Found:Unit
I've had no issues with the setOnClickListener event,...
Ivette asked 7/4, 2018 at 22:39
3
I need a clickable span to have both a normal click and a long click methods in my app and i found out here (In Android - How can I register only long clicks using a ClickableSpan) that i could ext...
Ulla asked 8/11, 2014 at 2:34
4
Solved
I have a ListView with listeners for a long click and a regular click.
Why, when I long press a list item, the regular click event gets called too?
I need to have two separate functions for the d...
Rameau asked 25/3, 2011 at 2:59
10
Solved
I want to add OnLongClickListener on my list view. Whenever the user long press the item in list some action should be performed, But my code does not catch this listener. Please let me know where ...
Rangefinder asked 13/1, 2012 at 6:19
2
How can I use setOnClickListener in each item in my ListView?
my xml :
<ListView
android:id="@+id/tv1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</Lis...
Janellejanene asked 20/8, 2017 at 14:54
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
4
Solved
I am using both onClickListener and onLongClickListener for a TextView in a ListView. I see that in Android 1.6, the long click listener is fired along with the on click listener meaning both are f...
Thomasinathomasine asked 7/1, 2011 at 0:25
4
I have an adapter that customizes a recyclerView and I want to open a popup menu on long click event on recyclerView's items.
How can I do this?
Happ asked 6/5, 2015 at 13:33
1
I am using the TabLayout found in the Service library. I have tried to add an OnLongClickListener when long-clicking on a tab. It has been impossible for me. I have even been trying to "hack" it by...
Pedropedrotti asked 27/10, 2015 at 11:49
1
Solved
I am starting to use RecyclerView in Android. Things work fine until I implement touch listener for my adapter.
From this topic:
https://mcmap.net/q/49778/-recyclerview-onclick
I can implement t...
Martella asked 14/1, 2015 at 14:18
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...
Suffrage asked 7/6, 2011 at 22:35
2
Solved
Newest Edit ----------------------------------------------------------------------------
I updated code and it is correct now, although I cannot get the functionality to run. On long click event no...
Octahedral asked 18/4, 2014 at 9:19
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...
Deictic asked 6/5, 2013 at 9:9
6
Solved
In our application, we handle the events in a button to record data.
So initially when I use setOnLongClickListener() and setOnClickListener() together with the same button, it work fine for us.
Th...
Broncobuster asked 7/9, 2011 at 12:5
1
I have a ListFragment associated with a simple ArrayAdapter. The ListView holds a list of checkable items and its XML layout is as follows:
<ListView android:id="@id/android:list"
android:layo...
Weaverbird asked 4/3, 2013 at 8:2
2
Solved
I have an ImageView. I need to use onLongClickListener for ImageView. When I use this code nothing happen.
Code:
gallery=(Gallery)findViewById(R.id.gall1);
gallery.setAdapter(new ImageAdapter...
Inerrable asked 25/6, 2013 at 5:16
2
Solved
I have the following struktur to implement an longclicklistener. It works if I click on a text on the webview which contains a html-link, so I know the structure is not completely wrong.
I removed...
Adiana asked 11/1, 2011 at 15:16
4
Solved
I'd like to have both type of clicks on a listView - onClick and LongClick.
I've implemented it like this:
this.listViewSub = (ListView) this.findViewById(R.id.listsub);
this.listViewSub.setOnIt...
Insipience asked 7/7, 2011 at 7:54
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...
Diplodocus asked 23/3, 2013 at 9:0
1
I have an AlertDialog in android that contains a list of buddies from sqlite. When I click on the buddy name in the list, that buddy is called. What I want to do is add a longclicklistener to the l...
Herron asked 4/2, 2012 at 23:39
2
I need to know how I can implement Drag & Drop in Android for the Gingerbread version. As I know Gingerbread doesn't support that by default.
What I have coded: a ViewGroup class to hold dynam...
Saragossa asked 10/1, 2012 at 12:3
1
Solved
I need your help if any one can be, it will be great thing for my solution.
I don't know is it possible or not, but I want to try to fix this out any how..
Actually I want to implement two method o...
Remise asked 20/11, 2012 at 9:44
2
Solved
I have a custom listView defined like this
public class DDListView extends ListView implements OnScrollChangedListener {
than I make an instance of it with name mExampleList I set onLongClickLis...
Toddtoddie asked 30/9, 2011 at 14:43
1
Solved
I am learning Android and I am stuck on an issue involving calling a custom content provider. I have been using an example in an instructional book and although it describes how to create the custo...
Acidimetry asked 10/3, 2011 at 23:46
1 Next >
© 2022 - 2024 — McMap. All rights reserved.