android - View State lost with click -
I have created a custom view that is essentially a gallery object that can be hidden and shown (view. View View. By clicking on a text view)
The images I placed in this gallery have a custom background state lightdog selector. Except for the status of the images in the gallery, everything works fine, when the gallery moves through the scene. See from GONE to see. The victorious, and the selector who has been drawn, is the default dozob (transrucit_box).
These are the items in my selector XML:
& lt; Item Android: Dragon = "@ Drawable / Red_box" Android: state_pressed = "true" /> & Lt; Item android: drawable = "@ drawable / orange_box" Android: state_selected = "true" android: state_focused = "true" /> & Lt; Item Android: Dragon = "@ Drable / Blue-box" Android: state_selected = "true" /> & Lt; Item android: drawable = "@ drawable / translucent_box" />
The most strange thing is that after starting with a call, the state is restored, and as long as I re-gallery the gallery.
I have tried to connect the different states of the selector and try to refresh the program and play around ... there is no benefit.
Any thoughts? I'm sure this should be something trivial ...
Thanks in advance!
I'm not sure it's relevant - but do you need to implement View.verifyDrawable ? Docks are not very clear when you need to do this
startActivity will trigger the animation by default - which is probably forced to refresh the view correctly, another potential hack around it would be to trigger some kind of empty animation.
Comments
Post a Comment