Top "Android-adapter" questions

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

RecyclerView.ViewHolder unable to bind view with ButterKnife

I'm using ButterKnife to bind my views on my ViewHolder. My code is below: public class MyAdapter extends RecyclerView.Adapter&…

android android-layout data-binding android-adapter butterknife
How to force redraw of listview?

This question is a little different from others of a similar title. I am not trying to update the data …

android android-widget android-listview android-adapter
How to properly handle screen rotation with a ViewPager and nested fragments?

I've got this activity, which holds a fragment. This fragment layout consists of a view pager with several fragments (two, …

android android-fragments android-viewpager android-adapter
How can remove adapter from Listview, Android

I use SimpleAdapter with custom row layout for Listview SimpleAdapter adapter = new SimpleAdapter(ListOrder.this, oslist, R.layout.list_v, …

android listview android-listview android-adapter simpleadapter
ListFragment with Custom Adapter

I have setup a listfragment in my project. but it seems my fragment cant get it right with my adapter. …

android android-listview slider android-listfragment android-adapter
RecyclerView.Adapter onBindViewHolder() gets wrong position

I'll show the code and after the steps to get the problem. I have a recyclerview inside a tabbed fragment …

android android-recyclerview android-adapter
android how to call startActivityForResult inside an adapter

I have an adapter class : public class AdapterAllAddress extends BaseExpandableListAdapter { private Context context; public AdapterAllAddress(Context context, ArrayList<AllAddressesGroup&…

java android android-activity android-adapter android-adapterview
RecyclerView: find last visible item immediately after view created

I'm having a problem with the following methods: int firstVisibleItemPosition = gridLayoutManager.findFirstVisibleItemPosition(); int lastVisibleItemPosition = gridLayoutManager.findLastVisibleItemPosition(); My goal: save analytic …

android android-layout android-adapter android-recyclerview
Dynamically change the number of columns of a GridLayoutManager

I am actually using a GridLayoutManager with two columns in my app and I would like to have one column …

android gridview android-adapter android-gridlayout