Top "Android-adapter" questions

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

FragmentPagerAdapter notifyDataSetChanged not working

I got a FragmentPagerAdapter. It's getItem method can return a fragment according to data it has from the outside. After …

android android-adapter fragmentpageradapter notifydatasetchanged
Popup Menu in custom ListView

What I want to achieve: I have a custom ListView adapter. To each Listitem I want to add a popup …

java android listview android-adapter runtimeexception
What is the working of setTag and getTag in ViewHolder pattern?

I have a simple code snippet for implementing custom listview. My code is as follows: WeatherAdapter.java : public class WeatherAdapter …

android listview android-adapter android-viewholder
Android ListView Adapter notifyDataSetInvalidated() vs notifyDataSetChanged()

What is the difference? The android documentation doesn't have a description for notifyDataSetInvalidated(). I was thinking maybe you call that …

android android-listview android-adapter
Can't set OnCheckedChangeListener to a Checkbox

I am trying to set a OnCheckedChangeListener to a CheckBox but my application exits in the run time. I also …

android checkbox android-listview android-adapter
Calling Custom ListView Adapter from Fragment Class Main Activity

I've written a few listView activities, as a proof of concept for myself that I could do it. Now, I'm …

android android-layout android-listview android-adapter main-activity
RecyclerView OnClick not working

I have made a horizontal recyclerview inside a fragment. Now when I click on any item I don't see the …

android android-adapter android-recyclerview
How to Refresh ListView in Fragment that is filled with BaseAdapter?

I want to Refresh a ListView in a Fragment when a Dialog is closed. Until now the refresh only works …

android android-listview android-fragments baseadapter android-adapter
android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams

Following numerous tutorials and example projects I've arrived at the following code which should fill a ListView with rows that …

android android-layout android-adapter
Custom adapter getview is not called

I have a Custom adapter with a ListFragment but the adapters getView() is not getting called at all. This is …

android android-listfragment android-adapter