android - How do I prevent the members of a compound view from restoring their inidividual states? -
i have custom viewgroup object composed of 2 spinners (whose values interdependent), , layout defined in xml file. want compound view object able restore own state upon orientation changes. problem though have overridden onrestoreinstancestate(parcelable state)
in custom view object code, , can see code appear correctly restore object state when step through code, after restore custom viewgroup state individual spinners seem restore erraneously on top of custom restore.
this fine if did correctly, seems system stores instance states spinners id, , since there multiple instances of compound view, saves state of 1 of them , restores of them. how can tell spinners compound view holds not restore themselves? subclassing spinner empty onrestoreinstancestate method didn't work because spinner throws runtime exception if fail call spinner.onrestoreinstancestate dummy subclass method.
Comments
Post a Comment