Android Navigation drawer menu item icon color - android

I need to know how to set specific color for each menu item icon in navigation drawer.I am currently using latest navigation drawer in android studio 1.4.1 and also how can we include navigation header image view and name in our activity since the navigation header is in separate layout.

Include two navigation drawers in you layout file and assign gravity left for one and gravity right for another either dynamically or programmatically

Related

Add title under the icon of navigation drawer

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 put a profile image and a searchbar in a toolbar?

I am new to Android development I am building an app but from last three days, I am stuck while making toolbar I am very confused. I want to make toolbar like this
The widget elements in your design are the following from left to right:
Navigation Drawer Indicator
ImageView
SearchView
Toggle
Overflow Menu
These can all be implemented using default widgets. It is not common to put a profile image to the right of the title, but you could do this by putting a custom layout inside the toolbar view.
It is also not common to place a toggle in the action bar, but it is possible using an ActionLayout.

Icon in Navigation Drawer always square :-(

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

Android design support navigation drawer align on bottom

How can I align a part of the items in the navigation drawer (like settings and help) to the bottom of the navigation drawer like the google apps do? Is that supported in the new design support navigation drawer?
Those are ListView's footer views, which are always drawn after every other list item.
listView.addFooterView(inflater.inflate(R.layout.footer, null));

Navigation Drawer Problems

in my android project, I have set up a navigation drawer. Now, on swiping, the drawer works fine but I have a few problems that I'd liked solved.
There is no drawer icon to the left side of my launcher icon in the action bar. How do you implement that. Also when I click on the action bar icon, the navigation drawer does not slide in.
I would like to change the color of the text of my ListView inside my navigation drawer. I tried changing android:textColor in the xml layout but it didn't work.
I have the drawer_shadow.9.png drawable of the navigation drawer and I tried implementing it using the setDrawerShadow(drawable, gravity); method but it didn't seem to work. In the two parameters I added the drawable and the ListView R.id for the gravity.
That's just about it. Let me know if you need any more info. Thanks in advance.
There is no drawer icon to the left side of my launcher icon in the action bar. How do you implement that. Also when I click on the action bar icon, the navigation drawer does not slide in.
Use ActionBarDrawerToggle.
I would like to change the color of the text of my ListView inside my navigation drawer. I tried changing android:textColor in the xml layout but it didn't work.
If the "xml layout" is the one for the row, it should work. If the "xml layout" is the one for the drawer (where your ListView is), it should not work.
In the two parameters I added the drawable and the ListView R.id for the gravity.
From elsewhere in the DrawerLayout documentation, I think your interpretation of the second parameter is off:
Gravity.LEFT to move the left drawer or Gravity.RIGHT for the right. GravityCompat.START or GravityCompat.END may also be used.

Categories

Resources