Questions tagged [onitemclick]

OnItemClick is a callback method invoked when an item in an Android AdapterView has been clicked.

274 questions
0
votes
1 answer

RecyclerView item click is working on emulator but not on physical in kotlin

i have this function to setup the Recyclerview: fun setUpRecyclerview() { clickToPatch() mAdapter.updateData(plannersList) recyclerView!!.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false) …
Enigma
  • 353
  • 4
  • 14
0
votes
1 answer

xamarin item click in listview is not called

I used listView and when I try to triger the itemclick function it doesn't triger. I tried to figure that for the last 3 hours, pls help in class: li = (ListView)FindViewById(Resource.Id.listView1); li.ItemClick += Li_ItemClick1; li.ItemLongClick +=…
0
votes
1 answer

Android onItemClick method not working for item of ids other than 0

I have a problem with onItemClick method in android. I know other people have encountered such problems, found some references to their questions on SO, read about the answers provided and some other articles on the internet but it didn't help.…
shellking4
  • 109
  • 3
  • 12
0
votes
1 answer

Kotlin RecyclerView onItemClick

I trying to implement item click with RecyclerView about 2 days. I tried doing all that was suggested stackoverflow about this subject. I have no any ideas already what to do anymore. Therefore I want to ask you. This is my code: class…
0
votes
1 answer

If I Have thousands of items inside the recycler view then How can I set the item click listener on each item

recyclerView.addOnItemTouchListener(new RecyclerItemClickListener( this, recyclerView, new RecyclerItemClickListener.OnItemClickListener() { @Override public void onItemClick(View…
0
votes
0 answers

Android Recycler View Adapter OnClickListener inside another Adapter

I have the following Adapter : public class TeambuilderAdapter extends RecyclerView.Adapter implements ItemTouchHelperAdapter { private List mData; private LayoutInflater mInflater; private…
0
votes
1 answer

How to get a string from an element in an arrayList of strings using an Adapter for a recyclerview

I've created a RecyclerView that gets inflated with an ArrayList of Strings and I want to put extra information in an intent for the next activity to get the information. I can pass the position of the element in the reclyclerview(within the…
0
votes
1 answer

My onitemclick doesn't work after adding button to my ListView in android?

I am facing an issue in my application is that when i add a Button bottom of my ListView in android it's onItemClick doesn't work i am unable to click any item of ListView. For reference i am providing codes below : - Custom Adapter Class : Context…
0
votes
1 answer

I want select one item in custom listview and that item will get display on textview of second activity

I have used a custom ListView in my program and I want select one item in listview and that item will get displayed on textview of second activity. My code: listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override …
0
votes
2 answers

OnItem click not working properly after clicking on the item in Recyclerview

I have tried to implement search functionality in the recycler view.for that I have written below code in My "Main.kt" class search functionality is working fine for me, the issue is when I am searching the item from the list and clicking on that…
gautam
  • 522
  • 3
  • 14
0
votes
3 answers

on recyclerview item click show recyclerview data custom in toDialog Box

I have a recyclerview on my activity. When user click the recyclerview item i want to show my custom dialog box and show recyclerview item data into the dialog box, recylerview is working fine but problem is when i click the item the app is…
0
votes
3 answers

getting the position onItemClick implementation in LinearLayout

I am trying to show a ListView and my Java class extendsListFragment. While setting setOnItemClickListener on ListItem, the click Listener doesn't seem to work. Here is my code: ListView_rssfeeds_tab.xml
Om Sao
  • 7,064
  • 2
  • 47
  • 61
0
votes
2 answers

Image slider after listview item click

I have some 50-60 images. I want to display a list of the title of those images and if i click a item the image corresponding to that item and details of that image have to be opened and then the next images should be viewed by sliding. I have the…
user8940741
0
votes
1 answer

onItemClick is returning different values

I have this ViewHolder in my adapter. public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { ImageView optionImage; ImageView optionAddFavorites; BMLTextView optionText; …
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
0
votes
1 answer

Android: onItemClick and onItemLongClick do not respond

My Android app is composed of an SQLite database which populates individual ListView items with data user saves. Those items are available for display in activity_main.xml. I have a class called RecordsListFragment which contains the two problematic…
Pero Alex
  • 43
  • 1
  • 1
  • 6