how to create android listview like android google chrome tab

一个人想着一个人 提交于 2019-12-20 09:36:46

问题


I need to create listview like in this picture. The listview item go over each other like google chrome tabs.. I can move up or down listview item... Could anyone tell me a good advice or tell me examples how should I do this?

Thanks


回答1:


You need an iOS passbook style component like CardWalletView




回答2:


You have to create some accordions type control

Here is a link which will help you

http://android-puremvc-ormlite.blogspot.com/2011/07/android-simple-accordion-panel.html

when you close the previous view you will not animate that view to the end you have to keep some margin of 2 to 3 pixels to show view as you want




回答3:


Another idea is you should create some view and use drag and drop... But also you have to some Math calculation... Try this maybe you can get something




回答4:


Expanding list views may help you with that. I assume that your list view will essentially expand on click and shift everything below the selected area downwards revealing only the content of that selected tab.

Expanding list views utilize the parent-child methods that would allow you to create a very rough view of what you are showing. Styling and customizing those rough layouts afterwards could very well allow you to get that look you're looking for.

Here are some links that might be useful. http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/ http://developer.android.com/reference/android/widget/ExpandableListView.html



来源:https://stackoverflow.com/questions/17464258/how-to-create-android-listview-like-android-google-chrome-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!