ResourceCursorTreeAdapter
public
abstract
class
ResourceCursorTreeAdapter
extends CursorTreeAdapter
| java.lang.Object | |||
| ↳ | android.widget.BaseExpandableListAdapter | ||
| ↳ | android.widget.CursorTreeAdapter | ||
| ↳ | android.widget.ResourceCursorTreeAdapter | ||
Known Direct Subclasses
|
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, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
Constructor. |
|
ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)
Constructor. |
|
ResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, int childLayout)
Constructor. |
|
Public methods | |
|---|---|
View
|
newChildView(Context context, Cursor cursor, boolean isLastChild, ViewGroup parent)
Makes a new child view to hold the data pointed to by cursor. |
View
|
newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent)
Makes a new group view to hold the group data pointed to by cursor. |
Inherited methods | |
|---|---|
From
class
android.widget.CursorTreeAdapter
| |
From
class
android.widget.BaseExpandableListAdapter
| |
From
class
java.lang.Object
| |
From
interface
android.widget.Filterable
| |
From
interface
android.widget.ExpandableListAdapter
| |
From
interface
android.widget.HeterogeneousExpandableList
| |
Public constructors
ResourceCursorTreeAdapter
ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
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.
|
ResourceCursorTreeAdapter
ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)
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
ResourceCursorTreeAdapter (Context context, Cursor cursor, int groupLayout, int childLayout)
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.
|
Public methods
newChildView
View newChildView (Context context, Cursor cursor, boolean isLastChild, ViewGroup parent)
Makes a new child view to hold the data pointed to by cursor.
| 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 |
| Returns | |
|---|---|
View |
the newly created view. |
newGroupView
View newGroupView (Context context, Cursor cursor, boolean isExpanded, ViewGroup parent)
Makes a new group view to hold the group data pointed to by cursor.
| 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 |
| Returns | |
|---|---|
View |
The newly created view. |
Annotations
Interfaces
- AbsListView.MultiChoiceModeListener
- AbsListView.OnScrollListener
- AbsListView.RecyclerListener
- AbsListView.SelectionBoundsAdjuster
- ActionMenuView.OnMenuItemClickListener
- Adapter
- AdapterView.OnItemClickListener
- AdapterView.OnItemLongClickListener
- AdapterView.OnItemSelectedListener
- Advanceable
- AutoCompleteTextView.OnDismissListener
- AutoCompleteTextView.Validator
- CalendarView.OnDateChangeListener
- Checkable
- Chronometer.OnChronometerTickListener
- CompoundButton.OnCheckedChangeListener
- DatePicker.OnDateChangedListener
- ExpandableListAdapter
- ExpandableListView.OnChildClickListener
- ExpandableListView.OnGroupClickListener
- ExpandableListView.OnGroupCollapseListener
- ExpandableListView.OnGroupExpandListener
- Filter.FilterListener
- Filterable
- FilterQueryProvider
- HeterogeneousExpandableList
- ListAdapter
- MediaController.MediaPlayerControl
- MultiAutoCompleteTextView.Tokenizer
- NumberPicker.Formatter
- NumberPicker.OnScrollListener
- NumberPicker.OnValueChangeListener
- PopupMenu.OnDismissListener
- PopupMenu.OnMenuItemClickListener
- PopupWindow.OnDismissListener
- RadioGroup.OnCheckedChangeListener
- RatingBar.OnRatingBarChangeListener
- RemoteViewsService.RemoteViewsFactory
- SearchView.OnCloseListener
- SearchView.OnQueryTextListener
- SearchView.OnSuggestionListener
- SectionIndexer
- SeekBar.OnSeekBarChangeListener
- ShareActionProvider.OnShareTargetSelectedListener
- SimpleAdapter.ViewBinder
- SimpleCursorAdapter.CursorToStringConverter
- SimpleCursorAdapter.ViewBinder
- SimpleCursorTreeAdapter.ViewBinder
- SlidingDrawer.OnDrawerCloseListener
- SlidingDrawer.OnDrawerOpenListener
- SlidingDrawer.OnDrawerScrollListener
- SpinnerAdapter
- TabHost.OnTabChangeListener
- TabHost.TabContentFactory
- TextView.OnEditorActionListener
- ThemedSpinnerAdapter
- TimePicker.OnTimeChangedListener
- Toolbar.OnMenuItemClickListener
- ViewSwitcher.ViewFactory
- WrapperListAdapter
- ZoomButtonsController.OnZoomListener
Classes
- AbsListView
- AbsListView.LayoutParams
- AbsoluteLayout
- AbsoluteLayout.LayoutParams
- AbsSeekBar
- AbsSpinner
- ActionMenuView
- ActionMenuView.LayoutParams
- AdapterView
- AdapterView.AdapterContextMenuInfo
- AdapterViewAnimator
- AdapterViewFlipper
- AlphabetIndexer
- AnalogClock
- ArrayAdapter
- AutoCompleteTextView
- BaseAdapter
- BaseExpandableListAdapter
- Button
- CalendarView
- CheckBox
- CheckedTextView
- Chronometer
- CompoundButton
- CursorAdapter
- CursorTreeAdapter
- DatePicker
- DialerFilter
- DigitalClock
- EdgeEffect
- EditText
- ExpandableListView
- ExpandableListView.ExpandableListContextMenuInfo
- Filter
- Filter.FilterResults
- FrameLayout
- FrameLayout.LayoutParams
- Gallery
- Gallery.LayoutParams
- GridLayout
- GridLayout.Alignment
- GridLayout.LayoutParams
- GridLayout.Spec
- GridView
- HeaderViewListAdapter
- HorizontalScrollView
- ImageButton
- ImageSwitcher
- ImageView
- LinearLayout
- LinearLayout.LayoutParams
- ListPopupWindow
- ListView
- ListView.FixedViewInfo
- MediaController
- MultiAutoCompleteTextView
- MultiAutoCompleteTextView.CommaTokenizer
- NumberPicker
- OverScroller
- PopupMenu
- PopupWindow
- ProgressBar
- QuickContactBadge
- RadioButton
- RadioGroup
- RadioGroup.LayoutParams
- RatingBar
- RelativeLayout
- RelativeLayout.LayoutParams
- RemoteViews
- RemoteViewsService
- ResourceCursorAdapter
- ResourceCursorTreeAdapter
- Scroller
- ScrollView
- SearchView
- SeekBar
- ShareActionProvider
- SimpleAdapter
- SimpleCursorAdapter
- SimpleCursorTreeAdapter
- SimpleExpandableListAdapter
- SlidingDrawer
- Space
- Spinner
- StackView
- Switch
- TabHost
- TabHost.TabSpec
- TableLayout
- TableLayout.LayoutParams
- TableRow
- TableRow.LayoutParams
- TabWidget
- TextClock
- TextSwitcher
- TextView
- TextView.SavedState
- TimePicker
- Toast
- ToggleButton
- Toolbar
- Toolbar.LayoutParams
- TwoLineListItem
- VideoView
- ViewAnimator
- ViewFlipper
- ViewSwitcher
- ZoomButton
- ZoomButtonsController
- ZoomControls
Enums
Exceptions


