How to create a navigation drawer like the attached image. I've done android's default navigation drawer.
Asked
Active
Viewed 829 times
-4

Sivakumar
- 633
- 4
- 9
-
https://github.com/jfeinstein10/SlidingMenu – Harin Apr 14 '15 at 07:29
1 Answers
0
You can use a custom Adapter
for your navigation drawer:
mDrawerList = (ListView) findViewById(R.id.left_drawer);
mDrawerList.setAdapter(new DrawerAdapter(this, R.layout.yourcustomlayout, items));
And define a custom adapter with getView
method:
public class DrawerAdapter extends ArrayAdapter<?> {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// customize your list item here
// add icon for example
}
}
Background and text colors should be set in your custom layout.
More info here