WearableNavigationDrawerView.WearableNavigationDrawerAdapter

Added in 1.1.0

public abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter


Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Public constructors

Public methods

abstract int

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

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

Public constructors

WearableNavigationDrawerAdapter

Added in 1.1.0
public WearableNavigationDrawerAdapter()

Public methods

getCount

Added in 1.1.0
public abstract int getCount()

Returns the number of items in this adapter.

getItemDrawable

Added in 1.1.0
public abstract Drawable getItemDrawable(int pos)

Get the drawable associated with the item at pos.

getItemText

Added in 1.1.0
public abstract CharSequence getItemText(int pos)

Get the text associated with the item at pos.

notifyDataSetChanged

Added in 1.1.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.