Top "Adapter" questions

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

Sync Adapter without Account

I need to fetch some data over the cloud from my app. I've watched the google IO video on RESTful …

android rest adapter sync account
Text on spinner is white on a white background

The text on my spinners is white, and I have no idea why. This is my xml, nothing special <…

android adapter
Set OnClick Listener on button inside list view in android

I have a list view in my screen, every list item contains 2 text views and one button. On button click …

android listview button adapter onclicklistener
Android ArrayAdapter.Add method not working

The ArrayAdapter.add() method is not working for me. I am using Eclipse Helios 3.6 with ADT Plugin, Target Source is …

android arrays add adapter android-2.2-froyo
Android how to use adapter for listView without extending listActivity

I have an application with tabs. In one tab I need to put data (strings) in rows. To do so …

android listview adapter listactivity
Why set setBackgroundColor is not working in my custom listView

I have a custom listView. The main layout xml is something like this: <?xml version="1.0" encoding="utf-8"?> <…

android listview adapter
Cannot add header view to list -- setAdapter has already been called

I have one edittext field and one "search" button. When I click on search, I have to display a list …

android listview adapter
Android: getView() called twice in custom adapter

I'm setting a custom SimpleCursorAdapter to a ListView. For some reason FriendAdapter's getView() is called twice for every item in …

android listview adapter
ViewPager + FragmentStatePagerAdapter + orientation change

I have a little Problem: i have a ViewPager with some Pages and i use the FragmentStatePagerAdapter to handle the …

android caching android-viewpager adapter fragment
How to call notifyDataSetChanged() from a generic Adapter

An OnItemClickListener for a ListView has the following method: @Override public void onItemClick(AdapterView<?> parent, View v, int …

android listview adapter listadapter