I dynamically add different View elements in the code to the layout.xml specified in the LinearLayout .

When you rotate the screen, dynamic views are killed leaving my LinearLayout empty. Is it possible to somehow load the last state of LinearLayout before turning?

  • one
    Use android:configChanges="orientation|screenSize in manifest and nothing is lost when turning - iFr0z

1 answer 1

In Manifest'e:

 <activity android:name="...." android:theme="...." android:configChanges="orientation|screenSize">