Added in API level 1
ResourceCursorTreeAdapter
abstract class ResourceCursorTreeAdapter : CursorTreeAdapter
kotlin.Any | |||
↳ | android.widget.BaseExpandableListAdapter | ||
↳ | android.widget.CursorTreeAdapter | ||
↳ | android.widget.ResourceCursorTreeAdapter |
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.
Summary
Public constructors | |
---|---|
ResourceCursorTreeAdapter(context: Context!, cursor: Cursor!, groupLayout: Int, childLayout: Int) Constructor. |
|
ResourceCursorTreeAdapter(context: Context!, cursor: Cursor!, collapsedGroupLayout: Int, expandedGroupLayout: Int, childLayout: Int) Constructor. |
|
ResourceCursorTreeAdapter(context: Context!, cursor: Cursor!, collapsedGroupLayout: Int, expandedGroupLayout: Int, childLayout: Int, lastChildLayout: Int) Constructor. |
Public methods | |
---|---|
open View! |
newChildView(context: Context!, cursor: Cursor!, isLastChild: Boolean, parent: ViewGroup!) |
open View! |
newGroupView(context: Context!, cursor: Cursor!, isExpanded: Boolean, parent: ViewGroup!) |
Inherited functions | |
---|---|
Public constructors
ResourceCursorTreeAdapter
Added in API level 1
ResourceCursorTreeAdapter(
context: Context!,
cursor: Cursor!,
groupLayout: Int,
childLayout: Int)
Constructor.
Parameters | |
---|---|
context |
Context!: The context where the ListView associated with this SimpleListItemFactory is running |
cursor |
Cursor!: The database cursor |
groupLayout |
Int: resource identifier of a layout file that defines the views for all groups. |
childLayout |
Int: resource identifier of a layout file that defines the views for all children. |
ResourceCursorTreeAdapter
Added in API level 1
ResourceCursorTreeAdapter(
context: Context!,
cursor: Cursor!,
collapsedGroupLayout: Int,
expandedGroupLayout: Int,
childLayout: Int)
Constructor.
Parameters | |
---|---|
context |
Context!: The context where the ListView associated with this SimpleListItemFactory is running |
cursor |
Cursor!: The database cursor |
collapsedGroupLayout |
Int: resource identifier of a layout file that defines the views for collapsed groups. |
expandedGroupLayout |
Int: resource identifier of a layout file that defines the views for expanded groups. |
childLayout |
Int: resource identifier of a layout file that defines the views for all children. |
ResourceCursorTreeAdapter
Added in API level 1
ResourceCursorTreeAdapter(
context: Context!,
cursor: Cursor!,
collapsedGroupLayout: Int,
expandedGroupLayout: Int,
childLayout: Int,
lastChildLayout: Int)
Constructor.
Parameters | |
---|---|
context |
Context!: The context where the ListView associated with this SimpleListItemFactory is running |
cursor |
Cursor!: The database cursor |
collapsedGroupLayout |
Int: resource identifier of a layout file that defines the views for collapsed groups. |
expandedGroupLayout |
Int: resource identifier of a layout file that defines the views for expanded groups. |
childLayout |
Int: resource identifier of a layout file that defines the views for all children but the last.. |
lastChildLayout |
Int: resource identifier of a layout file that defines the views for the last child of a group. |
Public methods
newChildView
Added in API level 1
open fun newChildView(
context: Context!,
cursor: Cursor!,
isLastChild: Boolean,
parent: ViewGroup!
): View!
Parameters | |
---|---|
context |
Context!: Interface to application's global information |
cursor |
Cursor!: The cursor from which to get the data. The cursor is already moved to the correct position. |
isLastChild |
Boolean: Whether the child is the last child within its group. |
parent |
ViewGroup!: The parent to which the new view is attached to |
Return | |
---|---|
View! |
the newly created view. |
newGroupView
Added in API level 1
open fun newGroupView(
context: Context!,
cursor: Cursor!,
isExpanded: Boolean,
parent: ViewGroup!
): View!
Parameters | |
---|---|
context |
Context!: Interface to application's global information |
cursor |
Cursor!: The group cursor from which to get the data. The cursor is already moved to the correct position. |
isExpanded |
Boolean: Whether the group is expanded. |
parent |
ViewGroup!: The parent to which the new view is attached to |
Return | |
---|---|
View! |
The newly created view. |