WearableNavigationDrawer.WearableNavigationDrawerAdapter
public
static
abstract
class
WearableNavigationDrawer.WearableNavigationDrawerAdapter
extends Object
This class is deprecated.
use the androidx.wear.widget.drawer.WearableNavigationDrawerView provided
by the Jetpack Wear library instead.
Adapter for specifying the contents of WearableNavigationDrawer.
Summary
Public constructors | |
|---|---|
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 |
abstract
String
|
getItemText(int pos)
Get the text associated with the item at |
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 |
Inherited methods | |
|---|---|
|
From class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class<?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
| |
Public constructors
WearableNavigationDrawerAdapter
public WearableNavigationDrawerAdapter ()
Public methods
getCount
public abstract int getCount ()
Returns the number of items in this adapter.
| Returns | |
|---|---|
int |
|
getItemDrawable
public abstract Drawable getItemDrawable (int pos)
Get the drawable associated with the item at pos.
| Parameters | |
|---|---|
pos |
int |
| Returns | |
|---|---|
Drawable |
|
getItemText
public abstract String getItemText (int pos)
Get the text associated with the item at pos.
| Parameters | |
|---|---|
pos |
int |
| Returns | |
|---|---|
String |
|
notifyDataSetChanged
public void notifyDataSetChanged ()
This method should be called by the application if the data backing this adapter has changed and associated views should update.
onItemSelected
public abstract void onItemSelected (int pos)
Callback when the adapter switches to the item at pos.
| Parameters | |
|---|---|
pos |
int |