开发者

adding items to expandable list view by drag and drop android

开发者 https://www.devze.com 2023-03-29 08:07 出处:网络
how to add items to the expandable list by drag and drop ?e.g If you drag and drop some text i开发者_开发问答t should be added in expandable list.You would need to draw a custom component see this pag

how to add items to the expandable list by drag and drop ?e.g If you drag and drop some text i开发者_开发问答t should be added in expandable list.


You would need to draw a custom component see this page for more information:

http://developer.android.com/guide/topics/ui/custom-components.html.

You would need to override the draw method and draw your own list view as well as where ever your dragging your items from. This is a complicated task and may seem daunting but I haven't really seen anyone do a drag and drop on android before. You may be the first!

If you need to simply reorder your listview then you should check out this thread:

reordering of listview items by drag and drop using android

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号