Top "Adapter" questions

Use this tag for questions relating to the Adapter design pattern, one of the Gang of Four's structural design patterns.

What is the intent of the methods getItem and getItemId in the Android class BaseAdapter?

I'm curious about the purpose of the methods getItem and getItemId in the class Adapter in the Android SDK. From …

android adapter
What is an adapter class?

I googled and investigated, but I still need some clarification: Are an adapter class and a controller class similar? If …

java android adapter
how to add item to Spinner's ArrayAdapter?

i had a EditText , a button and a spinner . When click the button , the spinner will add a new item …

android add adapter android-arrayadapter
set list view adapter in a fragment in android

I want a custom row, so I am using a List View in an xml and inflating into a fragment. …

android listview adapter fragment
ListView adapter data change without ListView being notified

I've written a ListActivity that has a custom list adapter. The list is being updated from a ContentProvider when onCreate …

android android-listview adapter notify
OnItemClickListener doesn't work with ListView item containing button

I have ListView with custom Adapter which supplies View to ListView in this way: public View getView(int position, View …

android listview button adapter onitemclicklistener
How to sort RecyclerView item in android

I'm working on a android chatting application. When I called my api it returns me the chat list sorted by …

android android-recyclerview adapter
What are Containers/Adapters? C++

What are containers/adapters? I have basic knowledge of C++ and its sub-topics like (class/templates/STL). Can anyone please …

c++ stl containers adapter
can we call startActivityForResult from adapter?

is it possible to have method onActivityResume within adapter & call startActivityForResult?

android adapter
ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView

I am attempting to create a custom Adapter for my ListView since each item in the list can have a …

android exception listview adapter