Galaxy S4 SupportActionBar covers whole screen in ActionMode

北城以北 提交于 2019-12-05 20:58:44

I solved this changing the parent of my custom actionmode theme from:

<style name="MyApp.Widget.ActionMode"  parent="@style/Widget.AppCompat.ActionMode">

to:

<style name="Apo.Widget.ActionMode" parent="@style/Widget.AppCompat.Light.ActionMode.Inverse">

For some reason those themes don't seem valid in the latest AppCompat libraries (I tried Widget.AppCompat.ActionMode.Light.Inverse, but it didn't fix the issue)

Instead if you are registered for orientation changes, you can override onConfigurationChanged(...) in your custom view and re-set the proper height parameters on the layout params. This reliably works to prevent the full-screen issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!