开发者

How can i change the List XML via a swipe gesture

at the moment i'm trying to write an app which has a listview, and if i swipe especially left the listitem switches to another xml like it's used in the twitter app.

Especially i have a list o开发者_JAVA技巧f items only with some text and when i swipe left on a single item it changes to an other item (via a xml-file) especially with some buttons or anything else.

I hope anyone, has an idea how i can do this?

Thanks.


I have seen this done using a Gallery set to fill_parent. Care has to be taken to allow child views to pass on touch events appropriately for swiping to work. Note that Gallery is a subclass of ViewGroup.

EDIT: see comment below, i should've checked the twitter app first!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜