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.
There a simple way to achieve this
let's say you have a Product class
public class Product{
private boolean currentState;
private boolean 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.