Hi everyone how to display the list divider in navigation drawer after each list. I have been trying since from 3 hours couldn't get how to do it?
Asked
Active
Viewed 74 times
0
-
2Divider after each list or each list items??? – Pankaj Jul 20 '15 at 10:38
-
@clairvoyant each list items – Ritesh Jul 20 '15 at 10:39
-
There is no Divider in the navigation drawer – TooCool Jul 20 '15 at 10:40
-
@Abdellah we have dividers. please check the link http://www.google.com/design/spec/components/dividers.html#dividers-types-of-dividers – Ritesh Jul 20 '15 at 10:42
-
What sort of divider you want a space or a line?? If you want a line what you can do is in your adapter layout add a view in last which can act as a line. – Pankaj Jul 20 '15 at 10:43
-
@Clairvoyant it doesn't work. I have added the list view in the last but couldn't get it. – Ritesh Jul 20 '15 at 11:03
-
I am not saying to add listview as the last view. Are you using custom adapter or default adapter to show list items. – Pankaj Jul 20 '15 at 11:06
-
I am using the custom adapter @Clairvoyant – Ritesh Jul 20 '15 at 11:23
-
ok then in you adapter class where you are inflating the layout for listitems in that layout add a view which act as a line like `
` – Pankaj Jul 20 '15 at 11:31 -
Thanks @Clairvoyant you saved my day. – Ritesh Jul 20 '15 at 11:42
-
Should I paste it as answer so you can accept and question doesn't remain unanswered. – Pankaj Jul 20 '15 at 11:56