How can I retain same state in landscape.
when I rotted the screen in landscape mode then activity is restarted and
my layout view is showing wrong. so please help me.
How can I retain same state in landscape. when I rotted the screen in
Share
you may save your state in a
BundleinonSaveInstanceState()method and restore it back inonCreate()or inonRestoreInstanceState().or if you want to disable orientation changes, you may add
android:screenOrientation="landscape"to yourActivityin the manifest file.