I use the gallery view, where the view corresponding to each element is non-trivial and consists of text as well as several buttons.
When I click to drag the gallery view (somewhere not on one of the buttons), pressing the button with the key pressed and displays as if all the buttons were currently pressed. In addition, the same behavior occurs for the selected state (for example, all the text of the child TextViews changes color).
I am trying to prevent this behavior and found the android: duplicateParentState xml attribute as well as the setDuplicateParentStateEnabled property. It seems like it should do what I'm trying to do, but it seems to have no effect.
Any ideas?
android drawable viewstate gallery android-adapterview
ghempton
source share