0
  1. i am developing an chat app in that there are two navigation drawer
  2. Left side drawer has hamburger icon to open and close
  3. i want to place an icon in the right side of the screen so that when the user touches icon the navigation drawer will open like in android emulator there is small icon extending to the navigation drawer
Sabarinathan
  • 439
  • 1
  • 7
  • 19

1 Answers1

0

Use menu items like below:

<item
        android:id="@+id/workteamaction"
        android:icon="@drawable/yourimage"
        android:title="@string/yourtitle"
        app:showAsAction="always" />

And set your image.then, handle it for showing that NavigationDrawer.

Also, take a look:

Two Navigation Drawer on same Activity

Handling a Menu Item Click Event - Android

Also, i've saw one application was using OveflowMenu for opening another NavigationDrawer.you may want to take a look at here :

Android create custom overflow menu item

Edit:

i want to place an icon in the right side of the screen so that when the user touches icon the navigation drawer will open like in android emulator there is small icon extending to the navigation drawer

Use android:gravity="" for your porpuse and then handle it for showing that NavigationDrawer.

E.g: android:gravity="end"

Read the docs for the flags.(right-left-center-buttom or etc).

Community
  • 1
  • 1
ʍѳђઽ૯ท
  • 16,646
  • 7
  • 53
  • 108
  • 1
    sorry..i asked how to add icon or image in the middle of right side end of screen ..So that when the user touches right side navigation drawer will open – Sabarinathan Jan 20 '16 at 09:25