Stay organized with collections
Save and categorize content based on your preferences.
WrapperListAdapter
interface WrapperListAdapter : ListAdapter
List adapter that wraps another list adapter. The wrapped adapter can be retrieved by calling getWrappedAdapter()
.
Summary
Public methods |
abstract ListAdapter! |
Returns the adapter wrapped by this list adapter.
|
Inherited functions |
From class ListAdapter
Boolean |
areAllItemsEnabled()
Indicates whether all the items in this adapter are enabled. If the value returned by this method changes over time, there is no guarantee it will take effect. If true, it means all items are selectable and clickable (there is no separator.)
|
Boolean |
isEnabled(position: Int)
Returns true if the item at the specified position is not a separator. (A separator is a non-selectable, non-clickable item). The result is unspecified if position is invalid. An ArrayIndexOutOfBoundsException should be thrown in that case for fast failure.
|
|
From class Adapter
Array<CharSequence!>? |
getAutofillOptions()
Gets a string representation of the adapter data that can help android.service.autofill.AutofillService autofill the view backed by the adapter.
It should only be set (i.e., non-null if the values do not represent PII (Personally Identifiable Information - sensitive data such as email addresses, credit card numbers, passwords, etc...). For example, it's ok to return a list of month names, but not a list of usernames. A good rule of thumb is that if the adapter data comes from static resources, such data is not PII - see android.view.ViewStructure#setDataIsSensitive(boolean) for more info.
|
Int |
getCount()
How many items are in the data set represented by this Adapter.
|
Any! |
getItem(position: Int)
Get the data item associated with the specified position in the data set.
|
Long |
getItemId(position: Int)
Get the row id associated with the specified position in the list.
|
Int |
getItemViewType(position: Int)
Get the type of View that will be created by getView for the specified item.
|
View! |
getView(position: Int, convertView: View!, parent: ViewGroup!)
Get a View that displays the data at the specified position in the data set. You can either create a View manually or inflate it from an XML layout file. When the View is inflated, the parent View (GridView, ListView...) will apply default layout parameters unless you use android.view.LayoutInflater#inflate(int, android.view.ViewGroup, boolean) to specify a root view and to prevent attachment to the root.
|
Int |
getViewTypeCount()
Returns the number of types of Views that will be created by getView . Each type represents a set of views that can be converted in getView . If the adapter always returns the same type of View for all items, this method should return 1.
This method will only be called when the adapter is set on the AdapterView .
|
Boolean |
hasStableIds()
Indicates whether the item ids are stable across changes to the underlying data.
|
Boolean |
isEmpty()
|
Unit |
registerDataSetObserver(observer: DataSetObserver!)
Register an observer that is called when changes happen to the data used by this adapter.
|
Unit |
unregisterDataSetObserver(observer: DataSetObserver!)
Unregister an observer that has previously been registered with this adapter via registerDataSetObserver .
|
|
Public methods
getWrappedAdapter
abstract fun getWrappedAdapter(): ListAdapter!
Returns the adapter wrapped by this list adapter.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."],[],[]]