WearableNavigationDrawerView.WearableNavigationDrawerAdapter

public abstract class WearableNavigationDrawerView.WearableNavigationDrawerAdapter


Adapter for specifying the contents of WearableNavigationDrawer.

Summary

Public methods

abstract @NonNull int

Returns the number of items in this adapter.

abstract @NonNull Drawable

Get the drawable associated with the item at {@code pos}.

abstract @NonNull CharSequence
getItemText(@NonNull int pos)

Get the text associated with the item at {@code pos}.

@NonNull void

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

Public methods

getCount

@NonNull
public abstract int getCount()

Returns the number of items in this adapter.

getItemDrawable

@NonNull
public abstract Drawable getItemDrawable(@NonNull int pos)

Get the drawable associated with the item at {@code pos}.

getItemText

@NonNull
public abstract CharSequence getItemText(@NonNull int pos)

Get the text associated with the item at {@code pos}.

notifyDataSetChanged

@NonNull
public void notifyDataSetChanged()

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