added in version 26.1.0
belongs to Maven artifact


public class WearableActionDrawerView
extends WearableDrawerView

   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout

Ease of use class for creating a Wearable action drawer. This can be used with WearableDrawerLayout to create a drawer for users to easily pull up contextual actions. These contextual actions may be specified by using a Menu, which may be populated by either:

  • Specifying the app:actionMenu attribute in the XML layout file. Example:
         app:actionMenu="@menu/action_drawer" />
  • Getting the menu with getMenu(), and then inflating it with inflate(int, Menu). Example:
     Menu menu = actionDrawer.getMenu();
     getMenuInflater().inflate(, menu);

The full Menu and MenuItem APIs are not implemented. The following methods are guaranteed to work:

For Menu, the add methods, clear(), removeItem(int), findItem(int), size(), and getItem(int) are implemented.

For MenuItem, setting and getting the title and icon, getItemId(), and setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener) are implemented.


Inherited constants

From class
From class android.view.ViewGroup
From class android.view.View