Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.wear:wear:1.0.0-rc01

WearableNavigationDrawerView.WearableNavigationDrawerAdapter

public static abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter
extends Object

java.lang.Object
   ↳ androidx.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

Public constructors

WearableNavigationDrawerView.WearableNavigationDrawerAdapter

added in version 1.0.0
public WearableNavigationDrawerView.WearableNavigationDrawerAdapter ()

Public methods

getCount

added in version 1.0.0
public abstract int getCount ()

Returns the number of items in this adapter.

Returns
int

getItemDrawable

added in version 1.0.0
public abstract Drawable getItemDrawable (int pos)

Get the drawable associated with the item at pos.

Parameters
pos int

Returns
Drawable

getItemText

added in version 1.0.0
public abstract CharSequence getItemText (int pos)

Get the text associated with the item at pos.

Parameters
pos int

Returns
CharSequence

notifyDataSetChanged

added in version 1.0.0
public void notifyDataSetChanged ()

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