Top "Adapter" questions

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

android - disable Listview item click and re-enable it

So I have the following code in the adapter: @Override public boolean isEnabled(int position) { GeneralItem item = super.getItem(position); …

android listview adapter
Android: Expandable Navigation Drawer with custom row views

I'm trying to do a navigation drawer menu with expandable elements like this --> http://goo.gl/SkMU8N …

android navigation views adapter drawer
Android: How to make an adapter with stable ids?

I've made my own custom adapter extended from BaseAdapter to show a listview and so on... I want it to …

android listview adapter
android viewpager change adapter

I'm developing an app with a ViewPager for lateral scrolling tables, sometimes i need to change the adapter to load …

android adapter android-viewpager
Adapter Pattern: Class Adapter vs Object Adapter

I have a few questions about the Adapter pattern. I understand that the class adapter inherits from the adaptee while …

oop design-patterns adapter software-design
What's the purpose of item-id's in Android ListView Adapter?

(Not specific to ListView, but to Adapter). I keep implementing this when I subclass BaseAdapter: @Override public long getItemId(int …

android listview position adapter
Why this Error occurred? java.lang.RuntimeException: ImageLoader must be init with configuration before using

I have downloaded one ImageDownloader code from gitHub(from Here) Now when I am trying to download the image from …

android adapter runtimeexception
When getView() in ArrayAdapter is called

When creating a customized adapter for ListView in android, I see that I have to create a class the extends …

java android layout adapter android-arrayadapter
Multiple choice alert dialog with custom row layout

I need to create an AlertDialog with multiple choice items but I'm having some trouble trying to set a custom …

android adapter android-alertdialog multiple-choice
ViewHolder pattern correctly implemented in custom CursorAdapter?

Here is my custom CursorAdapter: public class TasksAdapter extends CursorAdapter implements Filterable { private final Context context; public TasksAdapter(Context context, …

java android adapter