vendredi 22 mai 2015

Saving instance on screen rotate in a two-layout activity

My activity has an ImageView. It gets an image from take picture action. This activity has two layouts. Two layouts

In the manifest, there is:

The manifest

My problem is, that if I remove

configChanges="orientation|keyboardHidden|screenSize"

data won't save but if not, form_layout.xml (land) won't load. What loads on screenRotate is a default landscape layout.

How can I solve my problem which is to load new xml layout after rotation with saved data?

Aucun commentaire:

Enregistrer un commentaire