Undo The Changes In Listview Onbackpressed
I have a list view which contains list of products and on the click of the list item, list details gets open. The list item contains values like gross weight, net weight etc. On th
Solution 1:
There a simple way to achieve this
let's say you have a Product class
publicclassProduct{
privateboolean currentState;
privateboolean previosState;
}
Maintain the currentState when user clicks on the cross button but do not touch the previousState.
Now on the yes or no selection when press Yes consider the currentState and when press No consider the previosState.
Post a Comment for "Undo The Changes In Listview Onbackpressed"