listview - Slide In button effect of List View item for Android -


i'm porting iphone app android app , 1 of difficulties recreating functionalities native iphone.

i found native functionality of iphone: when user execute slide touch on listed item in list view, delete button appears.

is there version in android? can used , reused/customized?

this bit more complicated achieve. talking higher level.

  1. create custom viewgroup/layout hold list item. inside layout have text lines images or ever have , delete button. here listen gestures hide or unhide delete button.

  2. in list adapter going need keep track of item showing delete button , not. also, going need apply click listener each of list item delete buttons. every time assign these states on list item should settag(...) , store list item position when it's clicked can tell item number must deleted.

  3. after deleting must refresh list in order take effect. depending on type of adapter using that's going determine how refresh adapter.

hopefully makes sense. think easiest way since i've done couple times similar functionality.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -