3
votes

I am making an app and I would like to customize a Preference to act like the Supporto item in this menu: when click a sort of list drops down.

enter image description here

And when Supporto is clicked:

enter image description here

I may be in mistake but in all my researches on the web the only answer found was to use Spinners for "drop down". I tried but I don't get the same effect. Spinners either work as popup when clicked or drop a window down that is not kind of integrated in the menu. I would like to get the effect I get in these images, where the list from the drop down moves the other element to get part of the menu as well.

I hope I made myself clear.

Thanks in advance

1
Are you looking for some thing like this?.Let'sRefactor
Change the ListView to ExpandableListView.Hemanth

1 Answers

0
votes

I would suggest to use an ExpandableListView in a NavigationDrawer. which will give you the look and feel & behaviour as you discribed in your question. Eg:-

enter image description here

For more understanding read this and try this source.

This Question can also Help you.