android - View hidden on start is not displayed again after showing view, then configuration change -
is correct?
- in layout have checkbox marked invisible or gone.
- after creation, mark checkbox visible (i.e. after selecting button).
- perform configuration change (rotate device example).
- checkbox marked visible not showing.
however, checked state of checkbox maintained, confusing me, information saved, not?
what's best way ensure view stays visible after configuration change?
thanks, zach
unless specify otherwise, configuration change cause current activity destroyed. try check visibilty of checkbox visiable or not.
in case, rotate device cause layout change, check layout file both landscape , portrait, check if can see checkbox placed properly.
Comments
Post a Comment