简体   繁体   中英

Drag and swap custom views in android

1) I have a tab widget which has 5 tabs [each tab showing an image and text].

2) 5th tab is for 'More' option. When the user selects this tab a sliding drawer will be opened which has grid of custom views [content same as each tab has, an image and text under it].

3) Now, user can click on any view from the sliding drawer and then drag it and swap with any of the tabs.

I could solve this problem using this link :)
http://developer.android.com/guide/topics/ui/drag-drop.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM