Suppose I have a listview with 3 rows. If the user clicks a button in row 1, it expands a menu (it’s just a linear layout that’s shown/hidden). If they then click on an item in row 2, I’d like to be able to collapse the menu in row 1. Is this possible? If so, how?
Share
Save a reference to the View you would like to manipulate later. Probably wrap in a
finalvariable, then you will be easy to change.