android - Move listview item left and right by clicking on it -
i want implement moving of listview item right or left clicking on have use code listv swiplistview have listview below,
list item have 2 view left view (contain 1 textview ) , right view (contain 2 button)
now when tap on row left view move left side , right view display, (row move left side) below
now if again click on row right view move @ right side , textview display (row moves @ right) changes have done in ? or add animation in listview item click ??
in swiplistview.java
change
case motionevent.action_up: case motionevent.action_cancel: log("============action_up"); clearpressedstate(); if (misshown) { hiddenright(mpreitemview); }
to
case motionevent.action_up: showright(mcurrentitemview); case motionevent.action_cancel: log("============action_up"); clearpressedstate(); if (misshown) { if ( mpreitemview != null) hiddenright(mpreitemview); }
Comments
Post a Comment