Hi, guys --
An activity is designed as 'help' and includes toolbar and webview only.
My goal is to do like in Chrome - rotation should not re-create views. This allows, for instance, do not stop video inside web page.
I found how to prevent Activity_Create (to add something like SetActivityAttribute (helpmenu, android:configChanges, "keyboard|keyboardHidden|orientation|screenSize") into manifest.
But now it's interesting how to receive a event that orientation is changed ? Additional line in manifest prevents not only Activity_Create, but Activity_Resume also.
Guess, I can check orientation and to change layout by timer. Any better ideas ?
PS. Found - ime_HeightChanged detects screen size changes even without Activity_Create/Resume.
An activity is designed as 'help' and includes toolbar and webview only.
My goal is to do like in Chrome - rotation should not re-create views. This allows, for instance, do not stop video inside web page.
I found how to prevent Activity_Create (to add something like SetActivityAttribute (helpmenu, android:configChanges, "keyboard|keyboardHidden|orientation|screenSize") into manifest.
But now it's interesting how to receive a event that orientation is changed ? Additional line in manifest prevents not only Activity_Create, but Activity_Resume also.
Guess, I can check orientation and to change layout by timer. Any better ideas ?
PS. Found - ime_HeightChanged detects screen size changes even without Activity_Create/Resume.
Last edited: