Top "Android-adapter" questions

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

RecyclerView.Adapter.notifyItemChanged() never passes payload to onBindViewHolder()

I'm trying to update a ViewHolder in a RecyclerView without rebinding the entire thing. According to the docs, I should …

android android-support-library android-adapter android-recyclerview
ListView or TableLayout?

I am really confused now as to which one to learn. I am an iPhone app developer and now learning …

android android-listview android-adapter android-tablelayout custom-cell
How to set Layoutparams height/width in dp value?

I tried setting height/width manually in button but it didn't work. Then implemented Layoutparams. But size shows small and …

android xml android-layout android-adapter
Dynamically remove an item from a ViewPager with FragmentStatePagerAdapter

There are quite a few discussions around this topic ViewPager PagerAdapter not updating the View Update ViewPager dynamically? Removing fragments …

android android-fragments android-viewpager android-adapter
Use custom View in a RecyclerView Adapter?

I have a basic custom View which looks like this: public class CustomView extends RelativeLayout { private User user; private ImageView …

android android-recyclerview android-view android-adapter
Does notifydatasetchanged call onCreateViewHolder when using RecyclerView

I want to use a toggle to toggle between two different views but using the same RecyclerView. Basically, once you …

android android-adapter android-recyclerview notifydatasetchanged
Android ListView - scrolls back to top on update

I have a listview that gets additional views added on request, that's maintained by a BaseAdapter. How can I maintain …

android android-listview android-ui android-adapter
Unable to use LayoutInflater in custom adapter

I'm looking into writing a custom adapter to populate a listview with 3 textviews per line. I've found quite a bit …

android android-layout listview android-xml android-adapter
How to set two adapters to one RecyclerView?

I am developing an android app in which I'm storing two different types of information on 'FirebaseDatabase`. Then in the …

android android-recyclerview android-adapter android-viewholder fastadapter
CursorAdapter bindView optimization

When overriding ArrayAdapter I know is correct using a pattern like this: if(view != null){ ...create new view setting fields …

android android-cursoradapter android-adapter