Navigation Drawer

The navigation drawer is a panel that displays the app’s main navigation options on the left edge of the screen. It is hidden most of the time, but is revealed when the user either swipes a finger from the left edge of the screen or, while at the top level of the app, the user touches the app icon in the action bar.

The Navigaton Drawer is defined by a Drawer element that is a direct child of the RemoteUILayout root element.


A Navigation Drawer and Buttons for opening and closing it
<RemoteUILayout xmlns="urn:remoteui:org:layout">
  <Drawer id="myDrawer" position="left">
    <LinearLayout width="fill_parent" height="fill_parent"
        orientation="vertical" backgroundColor="white">
        <Button width="fill_parent" text="Close Drawer" onClick="#{hideDrawer('myDrawer')}" />
  <Button width="fill_parent" text="Show Drawer" onClick="#{showDrawer('myDrawer')}" />


One View or Layout.


Name Type Default Binding Description



A string ID to identify the drawer in source code. With this ID you can open and close it programmatically.



The position of the drawer. Can be one of left and right.



Set a color to use for the scrim (overlay) that obscures primary content while a drawer is open.

Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.

results matching ""

    No results matching ""