android - Transparent status bar covers Action Mode on Kitkat -



android - Transparent status bar covers Action Mode on Kitkat -

i have activity fragment. fragment phone call method show contextual action bar , here problem.

styles:

<style name="mythemelight" parent="@android:style/theme.holo.light.noactionbar"> <item name="android:actionmodeclosebuttonstyle">@style/myclosebutton</item> <item name="android:actionmodestyle">@style/contextualbar.light</item> <item name="android:actionoverflowbuttonstyle">@style/overflow</item> <item name="android:actionbarstyle">@style/mymainactionbar</item> <item name="android:windowtranslucentstatus">true</item> <item name="android:actionmodeclosedrawable">@drawable/close_white</item> <item name="android:windowactionmodeoverlay">true</item> <item name="android:windowbackground">@color/background</item> <item name="android:dropdownlistviewstyle">@style/popupmenulight</item> </style> <style name="mymainactionbar" parent="@android:style/widget.holo.light.actionbar.solid.inverse"> <item name="android:background">@drawable/ab_bottom_solid_dark_holo</item> <item name="android:height">1dp</item> </style> <style name="contextualbar.light" parent="android:style/widget.holo.actionmode"> <item name="android:background">@drawable/ab_bottom_solid_dark_holo</item> <item name="android:height">56dp</item> </style> <style name="overflow" parent="@android:style/widget.holo.actionbutton.overflow"> <item name="android:src">@drawable/menu_white</item> </style> <style name="myclosebutton" parent="android:style/widget.actionbutton.closemode"> <item name="android:textcolor">#000000</item> </style> </resources>

layout:

<framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true"> <android.support.v4.widget.drawerlayout android:id="@+id/drawer_layoutright" android:layout_width="fill_parent" android:layout_height="match_parent"> <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layoutleft" android:layout_width="fill_parent" android:layout_height="match_parent"> <!-- main content view --> <android.support.v4.view.viewpager android:id="@+android:id/viewpager" android:layout_width="fill_parent" android:layout_height="fill_parent" /> <!-- navigation drawer --> <fragment class="...bookmarksleft" android:id="@+id/drawer_listleft" android:layout_width="306dp" android:layout_height="match_parent" android:layout_gravity="start" android:choicemode="singlechoice" android:divider="@android:color/transparent" android:dividerheight="0dp" android:tag="bookleft"/> </android.support.v4.widget.drawerlayout> <fragment class="...bookmarksright" android:layout_width="306dp" android:layout_height="match_parent" android:layout_gravity="end" android:choicemode="singlechoice" android:divider="@android:color/transparent" android:dividerheight="0dp" android:tag="bookright"/> </android.support.v4.widget.drawerlayout> </framelayout>

as can see, main style has no action bar, status bar transparent, "android:windowactionmodeoverlay" true , "android:fitssystemwindows" true get:

is there way move cab down?

just alter paddingtop , height. , add together actionmode style in apptheme.

<style name="apptheme" parent="theme.appcompat.light.noactionbar"> <item name="actionmodestyle">@style/customactionmode</item> </style> <style name="customactionmode" parent="@style/widget.appcompat.light.actionmode.inverse"> <item name="android:paddingtop">25dp</item> <item name="height">80dp</item> <item name="titletextstyle">@style/title</item> </style>

android statusbar actionmode

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -