android - How to move multiple selected items from listview to another listview -
i have 2 listviews sample image here.i want move items 1 listview another. have 2 buttons,"move right" , "move left". multi selection listview.after select items need move items listview.
first listview data database.code shown below
public void fillcategory() { cursor cursor = database .select("select * t_category order categoryname"); lacategory = new list(this, android.r.layout.simple_list_item_activated_1, cursor, new string[] { "categoryname" }, new int[] { android.r.id.text1 },1); lvcategory.setadapter(lacategory); lvcategory.setonitemclicklistener(new listclick()); lvcategory.setchoicemode(listview.choice_mode_multiple); }
there twio options can this, first adding checkbox in each listitem , populate other listview selected items. here tutorial multiple check
second, can set listview property multiple_select in adapter , populated selected item through position in other listview. hope atleast 1 work.
Comments
Post a Comment