I'm using support.v7.widget.Toolbar for create my actionbar. My question is that how I can change default drawer menu icon position to right corner?
Use DrawerArrowDrawable set in menu replace Toolbar Navigation Icon!
Related
How can I change just one of menu item icon color in Android's navigation drawer? I don't want to change the entire drawers icon but just one icon.
I tried setting the android:iconTint property but that does not work.
I want to add title under the icon that as default appears when i create the navigation drawer .
like in red border
Its not possible if you use normal ActionBarToggle, you can provide your own custom layout in toolbar and add menu icon to it but back animation will not work. Also you will have to handle click events on the menu your self
How to make icon in my Navigation Drawer rectangle like original size?
Yes, by default if you are using menu resource with items to populate Navigation drawer it will have equal width and height.
Alternatively, you can create your own listview with custom list_item for Navigation Drawer and use it to populate your own data with your Custom UI.
Please refer this link to do so : Android Nav Drawer
I use sliding drawer menu in my android project and
I use one drawer menu for all of myActivies
I want in root Activity when click on actionbar`s icon the drawer menu is open!
and in childs Activities when click on actionbar's icon go to parent Activity
like google play or gmail and ...
how I can do this?!
Implement the navigation as usual (with drawertoggle and everything), then call
_toggle.setDrawerIndicatorEnabled(false);
It will hide the drawer icon (the three vertical lines) and display the up caret. The up icon click event will not be handle by the drawer and will finish the activity (if you do so in the OnOptionsItemSelected).
yup, you can use Navigation drawer in the layout and as well as in the java code.
check this url for screenshot
https://developer.android.com/design/media/navigation_drawer_holo_dark_light.png
How to remove pointed icon in Navigation Drawer, I just playing with Navigation Drawer, I just wanted to maintain only one icon and the title in center.
put this in your onCreate() method.
getActionBar().setIcon(new ColorDrawable(getResources().getColor(android.R.color.transparent)));