How to add image in expandable List in parent in android?

Working with SimpleExpandableListAdapter is anything but simple. Here’s some code that should get you started, assuming that you’re using ExpandableListActivity. In this example, we use the standard android.R.layout.simple_expandable_list_item_1 for our group header view, but we use our own custom layout for the children. // Construct Expandable List final String NAME = “name”; final String IMAGE … Read more

SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

So i figured out that I needed to map loaderids to groupPositions and this solved my issue: Here is my Fragment class which implements the CursorLoader public class GroupsListFragment extends ExpandableListFragment implements LoaderManager.LoaderCallbacks<Cursor> { private final String DEBUG_TAG = getClass().getSimpleName().toString(); private static final String[] CONTACTS_PROJECTION = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME }; private static final … Read more