Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#pubctors) \| [Methods](https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#inhmethods)

# ResourceCursorTreeAdapter

*** ** * ** ***

` public abstract class ResourceCursorTreeAdapter `   
` ` ` ` ` extends https://developer.android.com/reference/android/widget/CursorTreeAdapter ` ` `

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||||
| ↳ | [android.widget.BaseExpandableListAdapter](https://developer.android.com/reference/android/widget/BaseExpandableListAdapter) |||
|   | ↳ | [android.widget.CursorTreeAdapter](https://developer.android.com/reference/android/widget/CursorTreeAdapter) ||
|   |   | ↳ | android.widget.ResourceCursorTreeAdapter |

Known direct subclasses [SimpleCursorTreeAdapter](https://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter) [SimpleCursorTreeAdapter](https://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter) An easy adapter to map columns from a cursor to TextViews or ImageViews defined in an XML file.   

*** ** * ** ***

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 ||
|---|---|
| ` https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#ResourceCursorTreeAdapter(android.content.Context,%20android.database.Cursor,%20int,%20int)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, int groupLayout, int childLayout) ` Constructor. |
| ` https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#ResourceCursorTreeAdapter(android.content.Context,%20android.database.Cursor,%20int,%20int,%20int)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout) ` Constructor. |
| ` https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#ResourceCursorTreeAdapter(android.content.Context,%20android.database.Cursor,%20int,%20int,%20int,%20int)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout) ` Constructor. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/view/View` | ` https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#newChildView(android.content.Context,%20android.database.Cursor,%20boolean,%20android.view.ViewGroup)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, boolean isLastChild, https://developer.android.com/reference/android/view/ViewGroup parent) ` Makes a new child view to hold the data pointed to by cursor. |
| ` https://developer.android.com/reference/android/view/View` | ` https://developer.android.com/reference/android/widget/ResourceCursorTreeAdapter#newGroupView(android.content.Context,%20android.database.Cursor,%20boolean,%20android.view.ViewGroup)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, boolean isExpanded, https://developer.android.com/reference/android/view/ViewGroup parent) ` Makes a new group view to hold the group data pointed to by cursor. |

### Inherited methods

From class ` https://developer.android.com/reference/android/widget/CursorTreeAdapter ` ` abstract void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#bindChildView(android.view.View,%20android.content.Context,%20android.database.Cursor,%20boolean)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, boolean isLastChild) `

Bind an existing view to the child data pointed to by cursor
` abstract void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#bindGroupView(android.view.View,%20android.content.Context,%20android.database.Cursor,%20boolean)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, boolean isExpanded) `

Bind an existing view to the group data pointed to by cursor.
` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#changeCursor(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor cursor) ` ` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#convertToString(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor cursor) ` ` https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getChild(int,%20int)(int groupPosition, int childPosition) `

<br />

` long` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getChildId(int,%20int)(int groupPosition, int childPosition) `

<br />

` https://developer.android.com/reference/android/view/View` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getChildView(int,%20int,%20boolean,%20android.view.View,%20android.view.ViewGroup)(int groupPosition, int childPosition, boolean isLastChild, https://developer.android.com/reference/android/view/View convertView, https://developer.android.com/reference/android/view/ViewGroup parent) `

<br />

` int` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getChildrenCount(int)(int groupPosition) `

<br />

` abstract https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getChildrenCursor(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor groupCursor) `

Gets the Cursor for the children at the given group.
` https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getCursor()() ` ` https://developer.android.com/reference/android/widget/Filter` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getFilter()() `

<br />

Returns a filter that can be used to constrain data with a filtering pattern.
` https://developer.android.com/reference/android/widget/FilterQueryProvider` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getFilterQueryProvider()() ` ` https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getGroup(int)(int groupPosition) `

<br />

` int` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getGroupCount()() `

<br />

` long` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getGroupId(int)(int groupPosition) `

<br />

` https://developer.android.com/reference/android/view/View` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#getGroupView(int,%20boolean,%20android.view.View,%20android.view.ViewGroup)(int groupPosition, boolean isExpanded, https://developer.android.com/reference/android/view/View convertView, https://developer.android.com/reference/android/view/ViewGroup parent) `

<br />

` boolean` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#hasStableIds()() `

<br />

` boolean` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#isChildSelectable(int,%20int)(int groupPosition, int childPosition) `

<br />

` abstract https://developer.android.com/reference/android/view/View` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#newChildView(android.content.Context,%20android.database.Cursor,%20boolean,%20android.view.ViewGroup)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, boolean isLastChild, https://developer.android.com/reference/android/view/ViewGroup parent) `

Makes a new child view to hold the data pointed to by cursor.
` abstract https://developer.android.com/reference/android/view/View` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#newGroupView(android.content.Context,%20android.database.Cursor,%20boolean,%20android.view.ViewGroup)(https://developer.android.com/reference/android/content/Context context, https://developer.android.com/reference/android/database/Cursor cursor, boolean isExpanded, https://developer.android.com/reference/android/view/ViewGroup parent) `

Makes a new group view to hold the group data pointed to by cursor.
` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#notifyDataSetChanged()() `

<br />

` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#notifyDataSetChanged(boolean)(boolean releaseCursors) `

Notifies a data set change, but with the option of not releasing any cached cursors.
` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#notifyDataSetInvalidated()() `

<br />

` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#onGroupCollapsed(int)(int groupPosition) `

Called when a group is collapsed.
` https://developer.android.com/reference/android/database/Cursor` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#runQueryOnBackgroundThread(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence constraint) ` ` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#setChildrenCursor(int,%20android.database.Cursor)(int groupPosition, https://developer.android.com/reference/android/database/Cursor childrenCursor) `

Sets the children Cursor for a particular group.
` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#setFilterQueryProvider(android.widget.FilterQueryProvider)(https://developer.android.com/reference/android/widget/FilterQueryProvider filterQueryProvider) ` ` void` ` https://developer.android.com/reference/android/widget/CursorTreeAdapter#setGroupCursor(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor cursor) `

Sets the group Cursor.
From class ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter ` ` boolean` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#areAllItemsEnabled()() `

<br />

` int` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#getChildType(int,%20int)(int groupPosition, int childPosition) `

Get the type of child View that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildView(int,%20int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` for the specified child item.
` int` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#getChildTypeCount()() `

<br />

Returns the number of types of child Views that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildView(int,%20int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` .
` long` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#getCombinedChildId(long,%20long)(long groupId, long childId) `

Override this method if you foresee a clash in IDs based on this scheme:

Base implementation returns a long:
- bit 0: Whether this ID points to a child (unset) or group (set), so for this method this bit will be 1. <br />

` long` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#getCombinedGroupId(long)(long groupId) `

Override this method if you foresee a clash in IDs based on this scheme:

Base implementation returns a long:
- bit 0: Whether this ID points to a child (unset) or group (set), so for this method this bit will be 0. <br />

` int` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#getGroupType(int)(int groupPosition) `

Get the type of group View that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupView(int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` .
` int` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#getGroupTypeCount()() `

<br />

Returns the number of types of group Views that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupView(int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` .
` boolean` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#isEmpty()() `

<br />

` void` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#notifyDataSetChanged()() ` ` void` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#notifyDataSetInvalidated()() ` ` void` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#onGroupCollapsed(int)(int groupPosition) `

Called when a group is collapsed.
` void` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#onGroupExpanded(int)(int groupPosition) `

Called when a group is expanded.
` void` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#registerDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) `

<br />

` void` ` https://developer.android.com/reference/android/widget/BaseExpandableListAdapter#unregisterDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) `

<br />

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/widget/Filterable ` ` abstract https://developer.android.com/reference/android/widget/Filter` ` https://developer.android.com/reference/android/widget/Filterable#getFilter()() `

<br />

Returns a filter that can be used to constrain data with a filtering pattern.
From interface ` https://developer.android.com/reference/android/widget/ExpandableListAdapter ` ` abstract boolean` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#areAllItemsEnabled()() ` ` abstract https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChild(int,%20int)(int groupPosition, int childPosition) `

Gets the data associated with the given child within the given group.
` abstract long` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildId(int,%20int)(int groupPosition, int childPosition) `

Gets the ID for the given child within the given group.
` abstract https://developer.android.com/reference/android/view/View` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildView(int,%20int,%20boolean,%20android.view.View,%20android.view.ViewGroup)(int groupPosition, int childPosition, boolean isLastChild, https://developer.android.com/reference/android/view/View convertView, https://developer.android.com/reference/android/view/ViewGroup parent) `

Gets a View that displays the data for the given child within the given group.
` abstract int` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildrenCount(int)(int groupPosition) `

Gets the number of children in a specified group.
` abstract long` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getCombinedChildId(long,%20long)(long groupId, long childId) `

Gets an ID for a child that is unique across any item (either group or child) that is in this list.
` abstract long` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getCombinedGroupId(long)(long groupId) `

Gets an ID for a group that is unique across any item (either group or child) that is in this list.
` abstract https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroup(int)(int groupPosition) `

Gets the data associated with the given group.
` abstract int` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupCount()() `

Gets the number of groups.
` abstract long` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupId(int)(int groupPosition) `

Gets the ID for the group at the given position.
` abstract https://developer.android.com/reference/android/view/View` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupView(int,%20boolean,%20android.view.View,%20android.view.ViewGroup)(int groupPosition, boolean isExpanded, https://developer.android.com/reference/android/view/View convertView, https://developer.android.com/reference/android/view/ViewGroup parent) `

Gets a View that displays the given group.
` abstract boolean` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#hasStableIds()() `

Indicates whether the child and group IDs are stable across changes to the underlying data.
` abstract boolean` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#isChildSelectable(int,%20int)(int groupPosition, int childPosition) `

Whether the child at the specified position is selectable.
` abstract boolean` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#isEmpty()() ` ` abstract void` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#onGroupCollapsed(int)(int groupPosition) `

Called when a group is collapsed.
` abstract void` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#onGroupExpanded(int)(int groupPosition) `

Called when a group is expanded.
` abstract void` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#registerDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) ` ` abstract void` ` https://developer.android.com/reference/android/widget/ExpandableListAdapter#unregisterDataSetObserver(android.database.DataSetObserver)(https://developer.android.com/reference/android/database/DataSetObserver observer) ` From interface ` https://developer.android.com/reference/android/widget/HeterogeneousExpandableList ` ` abstract int` ` https://developer.android.com/reference/android/widget/HeterogeneousExpandableList#getChildType(int,%20int)(int groupPosition, int childPosition) `

Get the type of child View that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildView(int,%20int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` for the specified child item.
` abstract int` ` https://developer.android.com/reference/android/widget/HeterogeneousExpandableList#getChildTypeCount()() `

<br />

Returns the number of types of child Views that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getChildView(int,%20int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` .
` abstract int` ` https://developer.android.com/reference/android/widget/HeterogeneousExpandableList#getGroupType(int)(int groupPosition) `

Get the type of group View that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupView(int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` .
` abstract int` ` https://developer.android.com/reference/android/widget/HeterogeneousExpandableList#getGroupTypeCount()() `

<br />

Returns the number of types of group Views that will be created by `https://developer.android.com/reference/android/widget/ExpandableListAdapter#getGroupView(int,%20boolean,%20android.view.View,%20android.view.ViewGroup)` .

## Public constructors

### ResourceCursorTreeAdapter

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ResourceCursorTreeAdapter (Context context, 
                Cursor cursor, 
                int groupLayout, 
                int childLayout)
```

Constructor.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The context where the ListView associated with this SimpleListItemFactory is running <br /> |
| `cursor` | `Cursor`: The database cursor <br /> |
| `groupLayout` | `int`: resource identifier of a layout file that defines the views for all groups. <br /> |
| `childLayout` | `int`: resource identifier of a layout file that defines the views for all children. <br /> |

### ResourceCursorTreeAdapter

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ResourceCursorTreeAdapter (Context context, 
                Cursor cursor, 
                int collapsedGroupLayout, 
                int expandedGroupLayout, 
                int childLayout)
```

Constructor.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The context where the ListView associated with this SimpleListItemFactory is running <br /> |
| `cursor` | `Cursor`: The database cursor <br /> |
| `collapsedGroupLayout` | `int`: resource identifier of a layout file that defines the views for collapsed groups. <br /> |
| `expandedGroupLayout` | `int`: resource identifier of a layout file that defines the views for expanded groups. <br /> |
| `childLayout` | `int`: resource identifier of a layout file that defines the views for all children. <br /> |

### ResourceCursorTreeAdapter

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ResourceCursorTreeAdapter (Context context, 
                Cursor cursor, 
                int collapsedGroupLayout, 
                int expandedGroupLayout, 
                int childLayout, 
                int lastChildLayout)
```

Constructor.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: The context where the ListView associated with this SimpleListItemFactory is running <br /> |
| `cursor` | `Cursor`: The database cursor <br /> |
| `collapsedGroupLayout` | `int`: resource identifier of a layout file that defines the views for collapsed groups. <br /> |
| `expandedGroupLayout` | `int`: resource identifier of a layout file that defines the views for expanded groups. <br /> |
| `childLayout` | `int`: resource identifier of a layout file that defines the views for all children but the last.. <br /> |
| `lastChildLayout` | `int`: resource identifier of a layout file that defines the views for the last child of a group. <br /> |

## Public methods

### newChildView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public View newChildView (Context context, 
                Cursor cursor, 
                boolean isLastChild, 
                ViewGroup parent)
```

Makes a new child view to hold the data pointed to by cursor.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: Interface to application's global information <br /> |
| `cursor` | `Cursor`: The cursor from which to get the data. The cursor is already moved to the correct position. <br /> |
| `isLastChild` | `boolean`: Whether the child is the last child within its group. <br /> |
| `parent` | `ViewGroup`: The parent to which the new view is attached to <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/View` | the newly created view. <br /> |

### newGroupView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public View newGroupView (Context context, 
                Cursor cursor, 
                boolean isExpanded, 
                ViewGroup parent)
```

Makes a new group view to hold the group data pointed to by cursor.

<br />

| Parameters ||
|---|---|
| `context` | `Context`: Interface to application's global information <br /> |
| `cursor` | `Cursor`: The group cursor from which to get the data. The cursor is already moved to the correct position. <br /> |
| `isExpanded` | `boolean`: Whether the group is expanded. <br /> |
| `parent` | `ViewGroup`: The parent to which the new view is attached to <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/View` | The newly created view. <br /> |