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
<init>(context: Context!, cursor: Cursor!, collapsedGroupLayout: Int, expandedGroupLayout: Int, childLayout: Int, lastChildLayout: Int)

Constructor.

<init>(context: Context!, cursor: Cursor!, collapsedGroupLayout: Int, expandedGroupLayout: Int, childLayout: Int)

Constructor.

<init>(context: Context!, cursor: Cursor!, groupLayout: Int, childLayout: Int)

Constructor.

Public methods
open View!
newGroupView(context: Context!, cursor: Cursor!, isExpanded: Boolean, parent: ViewGroup!)

open View!
newChildView(context: Context!, cursor: Cursor!, isLastChild: Boolean, parent: ViewGroup!)

Inherited functions

Public constructors

<init>

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 Context!: The database cursor
collapsedGroupLayout Context!: resource identifier of a layout file that defines the views for collapsed groups.
expandedGroupLayout Context!: resource identifier of a layout file that defines the views for expanded groups.
childLayout Context!: resource identifier of a layout file that defines the views for all children but the last..
lastChildLayout Context!: resource identifier of a layout file that defines the views for the last child of a group.

<init>

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 Context!: The database cursor
collapsedGroupLayout Context!: resource identifier of a layout file that defines the views for collapsed groups.
expandedGroupLayout Context!: resource identifier of a layout file that defines the views for expanded groups.
childLayout Context!: resource identifier of a layout file that defines the views for all children.

<init>

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 Context!: The database cursor
groupLayout Context!: resource identifier of a layout file that defines the views for all groups.
childLayout Context!: resource identifier of a layout file that defines the views for all children.

Public methods

newGroupView

open fun newGroupView(context: Context!, cursor: Cursor!, isExpanded: Boolean, parent: ViewGroup!): View!

newChildView

open fun newChildView(context: Context!, cursor: Cursor!, isLastChild: Boolean, parent: ViewGroup!): View!