public interface HierarchyListItem2 extends HierarchyListItem
HierarchyListItem.ComparatorSort, HierarchyListItem.Sort, HierarchyListItem.SortAlphabet, HierarchyListItem.SortAlphabetDesc, HierarchyListItem.SortDistanceFrom
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Unregister any listeners,
|
java.lang.String |
getAssociationKey()
Get settings screen association key (see DropDownReceiver)
|
android.view.View |
getCustomLayout()
Get a custom view for the entire OM drop-down
This is smoother than switching between drop-downs using intents
|
java.lang.String |
getDescription()
Get the item description (shown in gray under the title)
|
double[] |
getDropDownSize()
Get the preferred drop-down size for displaying this list
Width is used in landscape mode, height is used in portrait mode
|
android.view.View |
getExtraView(android.view.View convertView,
android.view.ViewGroup parent)
Same as
HierarchyListItem.getExtraView() except the existing view is provided
This is to allow more efficient view cycling when scrolling through OM |
android.view.View |
getFooterView()
Get the custom footer view for this list
|
android.view.View |
getHeaderView()
Get the custom header view for this list
|
android.graphics.drawable.Drawable |
getIconDrawable()
Get the icon drawable
|
android.view.View |
getListItemView(android.view.View convertView,
android.view.ViewGroup parent)
Used when this item is being displayed within a list
For overriding the entire list view, see
getCustomLayout() |
java.util.List<HierarchyListItem.Sort> |
getSorts()
Return all applicable sort modes for this list
|
boolean |
hideIfEmpty()
Count towards parent children if this item's children is empty
|
boolean |
isMultiSelectSupported()
Does this list support multi-selection of its items?
|
HierarchyListFilter |
refresh(HierarchyListFilter filter)
Refreshes this node's descendants on the specified filter and sort.
|
HierarchyListItem.Sort |
refresh(HierarchyListItem.Sort sort)
Deprecated.
|
getAction, getChildAt, getChildCount, getDescendantCount, getExtraView, getIconColor, getIconUri, getLocalData, getLocalData, getPreferredListIndex, getTitle, getUID, getUserObject, isChildSupported, setLocalData
@Deprecated HierarchyListItem.Sort refresh(HierarchyListItem.Sort sort)
refresh(HierarchyListFilter)
HierarchyListItem
refresh
in interface HierarchyListItem
sort
- HierarchyListFilter refresh(HierarchyListFilter filter)
filter
- The new sortvoid dispose()
boolean hideIfEmpty()
boolean isMultiSelectSupported()
java.lang.String getDescription()
android.graphics.drawable.Drawable getIconDrawable()
java.util.List<HierarchyListItem.Sort> getSorts()
java.lang.String getAssociationKey()
android.view.View getCustomLayout()
android.view.View getHeaderView()
android.view.View getFooterView()
android.view.View getListItemView(android.view.View convertView, android.view.ViewGroup parent)
getCustomLayout()
convertView
- The existing list item view. Only inflate a new layout
if the id/context do not match your expected config.parent
- The list view parent - Use this as "root" when inflatingandroid.view.View getExtraView(android.view.View convertView, android.view.ViewGroup parent)
HierarchyListItem.getExtraView()
except the existing view is provided
This is to allow more efficient view cycling when scrolling through OMconvertView
- The existing extra view. Only inflate a new layout
if the id/context do not match your expected config.parent
- The extra view parent - Use this as "root" when inflatingdouble[] getDropDownSize()