문제

I'd like to use Drawer in my application that uses different views like TextView or multiple ListViews. I want to have similar Drawer like Gmail or Feedly apps:

enter image description here

enter image description here

However I couln't find any example of how to do this in code and XML layout. One of the problems is using multiple ListViews in ScrollView - should I use LinearLayout instead of them and style it to look and act like ListView? Also how do I handle click event on these various views?

Are there any good examples or best practises to look for when creating "rich" drawer?

도움이 되었습니까?

해결책

On the usage of multiple listviews,yes use a layout and dividers(Views) and style them to look like a listview.Thats what the gmail app did.As for click events,you will handle them the same way you do on other activities,using the item id.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top