There is an application to load UI dynamically for a unique LinearLayout when button press.
The main UI is extends by Activity and others are extends by LinearLayout.The unique LinearLayout is in main UI.
Dynamically loading part is working smoothly.But when changing orientation of device or emulator it goes to main ui.I have a layout Stack to get current Layout(UI) at any given time.
I want to stop move to main UI when rotating the device/emulator.
Is it possible?
Thanks in advance.
There is an application to load UI dynamically for a unique LinearLayout when button
Share
It is probably because the activity is getting recreated on orientation change.
In your manifest file against the main activity add the following properties