ResourceCursorTreeAdapterpublic abstract class ResourceCursorTreeAdapter extends CursorTreeAdapter A fairly simple ExpandableListAdapter that creates views defined in an XML
file. You can specify the XML file that defines the appearance of the views. |
Fields Summary |
---|
private int | mCollapsedGroupLayout | private int | mExpandedGroupLayout | private int | mChildLayout | private int | mLastChildLayout | private android.view.LayoutInflater | mInflater |
Constructors Summary |
---|
public ResourceCursorTreeAdapter(android.content.Context context, android.database.Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)Constructor.
super(cursor, context);
mCollapsedGroupLayout = collapsedGroupLayout;
mExpandedGroupLayout = expandedGroupLayout;
mChildLayout = childLayout;
mLastChildLayout = lastChildLayout;
mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
| public ResourceCursorTreeAdapter(android.content.Context context, android.database.Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)Constructor.
this(context, cursor, collapsedGroupLayout, expandedGroupLayout, childLayout, childLayout);
| public ResourceCursorTreeAdapter(android.content.Context context, android.database.Cursor cursor, int groupLayout, int childLayout)Constructor.
this(context, cursor, groupLayout, groupLayout, childLayout, childLayout);
|
Methods Summary |
---|
public android.view.View | newChildView(android.content.Context context, android.database.Cursor cursor, boolean isLastChild, android.view.ViewGroup parent)
return mInflater.inflate((isLastChild) ? mLastChildLayout : mChildLayout, parent, false);
| public android.view.View | newGroupView(android.content.Context context, android.database.Cursor cursor, boolean isExpanded, android.view.ViewGroup parent)
return mInflater.inflate((isExpanded) ? mExpandedGroupLayout : mCollapsedGroupLayout,
parent, false);
|
|