I am using Inmersive Full Screen mode with Sticky flag
modality, the fourth of these four modalities explained here: https://developer.android.com/training/system-ui/immersive.html
I am doing this:
if( Build.VERSION.SDK_INT >= 19 ){
//si es mayor o igual a API 19 kitkat ocultamos las barras UI del sistema
mainBody.setSystemUiVisibility(
256 //SYSTEM_UI_FLAG_LAYOUT_STABLE
| 512 //SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| 1024 //SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| 2 //SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar
| 4 //SYSTEM_UI_FLAG_FULLSCREEN // hide status bar
| 4096 //SYSTEM_UI_FLAG_IMMERSIVE_STICKY
);
}
And in my manifest i have this at Application level:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
It works fine, but i have a Spinner in my app, and when i touch the spinner, the immersive mode disables!!! :S
How can this be solved?
Thanks