How to keep the layout in standby mode?

2

Well I have two layout test_1 and layout test_2, when I turn on the picture device appears test_1 and when I turn device to landscape appears test_2, you have to leave this layout in standby (idle) so your data will not be restarted when changing the guidance.

    
asked by anonymous 13.03.2015 / 17:10

2 answers

1

You can add the android:configChanges="orientation" attribute to the <activity> tag in your AndroidManifest.xml .

This setting means that, instead of re-creating Activity when changing orientation / configuration, your Activity will have a callback instead.

    
13.03.2015 / 19:03
1

Try this on AndroidManifest.xml , within <activity :

android:configChanges="orientation|navigation|keyboard"
    
14.03.2015 / 01:37