Top "Android-adapter" questions

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view.

Image GridView Inside Fragment

I have just started to develop on the android platform after developing on iOS. I have looked around and I …

android android-layout android-fragments android-adapter
findViewById vs View Holder Pattern in ListView adapter

I always use LayoutInflater and findViewById for creating new item in thegetView method of an Adapter. But in many articles …

android listview android-adapter
RecyclerView onBindViewHolder only called when getItemViewType changes

I have a viewholder with multiple viewtypes. When scrolling onBindViewHolder is only called when getItemViewType changes value. This causes my …

android android-support-library android-adapter android-recyclerview
How do I access to ListView from the adapter

I have a custom ListView with my own adapter. I'm handling the click on a Button in my ListView's item, …

android android-listview android-adapter
Android's ArrayAdapter - add strings listview instead of replace

This is how I add an array to listview: ListView my_listview = (ListView)findViewById(R.id.listView1); ArrayAdapter<String&…

android android-listview android-adapter
How to reset the ListView with the ArrayAdapter after fetching data

I am using an ListAdapter to populate a ListView like this: static final String[] PROBLEMS = new String[] {"one", "two", "three" }; /** …

android android-listview android-asynctask android-adapter
Android creating AlertDialog using values from ArrayList?

I am using following code to create a Dialog aleart box with lists item from studentNames ArrayList.I am creating …

android android-listview android-dialog android-adapter
Is there a better way of getting a reference to the parent RecyclerView from the adapter?

I have a use case where I need a reference to the parent RecyclerView from inside the adapter, specifically inside …

android android-adapter android-recyclerview