Skip to content

Most visited

Recently visited

navigation
added in version 26.1.0
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1

WearableNavigationDrawerView.WearableNavigationDrawerAdapter

public static abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter
extends Object

java.lang.Object
   ↳ android.support.wear.widget.drawer.WearableNavigationDrawerView.WearableNavigationDrawerAdapter


Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Public constructors

WearableNavigationDrawerView.WearableNavigationDrawerAdapter()

Public methods

abstract int getCount()

Returns the number of items in this adapter.

abstract Drawable getItemDrawable(int pos)

Get the drawable associated with the item at pos.

abstract CharSequence getItemText(int pos)

Get the text associated with the item at pos.

void notifyDataSetChanged()

This method should be called by the application if the data backing this adapter has changed and associated views should update.

Inherited methods

From class java.lang.Object

Public constructors

WearableNavigationDrawerView.WearableNavigationDrawerAdapter

added in version 26.1.0
WearableNavigationDrawerView.WearableNavigationDrawerAdapter ()

Public methods

getCount

added in version 26.1.0
int getCount ()

Returns the number of items in this adapter.

Returns
int

getItemDrawable

added in version 26.1.0
Drawable getItemDrawable (int pos)

Get the drawable associated with the item at pos.

Parameters
pos int

Returns
Drawable

getItemText

added in version 26.1.0
CharSequence getItemText (int pos)

Get the text associated with the item at pos.

Parameters
pos int

Returns
CharSequence

notifyDataSetChanged

added in version 26.1.0
void notifyDataSetChanged ()

This method should be called by the application if the data backing this adapter has changed and associated views should update.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)