- i am developing an chat app in that there are two navigation drawer
- Left side drawer has hamburger icon to open and close
- 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

- 439
- 1
- 7
- 19
1 Answers
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).
-
1sorry..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