Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
334 views
in Technique[技术] by (71.8m points)

android swipe to delete list row

so i've done some searching but haven't found a good answer. anyone who's familiar with android 4.0 knows the fancy swipe to remove running apps. i'm trying to implement this into a dynamic list.

when i say dynamic, it's a list being built with a base adapter and holder's.

i'm wondering if anyone has a good example of how to implement this swipe feature into a dynamic list. i want it to have the fancy animation and everything of the list collapsing back together after an element is removed. but, for now, i'm looking for a good starting point on how to properly implement this.

any and all help is always appreciated. thanks all!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

SwipeListView is an excellent ListView extension that does this. A demo application is also available on Google Play here: https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...