android - View hidden on start is not displayed again after showing view, then configuration change -


is correct?

  1. in layout have checkbox marked invisible or gone.
  2. after creation, mark checkbox visible (i.e. after selecting button).
  3. perform configuration change (rotate device example).
  4. 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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -