Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

WearableNavigationDrawer.WearableNavigationDrawerAdapter

public static abstract class WearableNavigationDrawer.WearableNavigationDrawerAdapter
extends Object

java.lang.Object
   ↳ android.support.wearable.view.drawer.WearableNavigationDrawer.WearableNavigationDrawerAdapter


Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Public constructors

WearableNavigationDrawer.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 String 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.

abstract void onItemSelected(int pos)

Callback when the adapter switches to the item at pos.

Inherited methods

From class java.lang.Object

Public constructors

WearableNavigationDrawer.WearableNavigationDrawerAdapter

WearableNavigationDrawer.WearableNavigationDrawerAdapter ()

Public methods

getCount

int getCount ()

Returns the number of items in this adapter.

Returns
int

getItemDrawable

Drawable getItemDrawable (int pos)

Get the drawable associated with the item at pos.

Parameters
pos int

Returns
Drawable

getItemText

String getItemText (int pos)

Get the text associated with the item at pos.

Parameters
pos int

Returns
String

notifyDataSetChanged

void notifyDataSetChanged ()

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

onItemSelected

void onItemSelected (int pos)

Callback when the adapter switches to the item at pos.

Parameters
pos int