layout - Android webview goes through action when setTranslucentStatus is true -
this second time building android app, first time want use "material design".
the problem webview goes trough action when systembar / status bar has translucent tint.
so questionis...how can prevent webview rendering/showing trough action bar?
if need more information of setup, free ask!
thanks help!
i can't post images yet :/ because of reputation
in styles.xml add this:
<style name="mytheme" parent="theme.appcompat.light.noactionbar"> <!-- customize theme here. --> <item name="colorprimary">@color/color_primary</item> <item name="colorprimarydark">@color/color_primary_dark</item> <item name="coloraccent">@color/accent_color</item> <item name="android:windowtranslucentstatus">false</item> <item name="android:windowcontenttransitions">true</item> </style> and in colors.xml define custom colors this:
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="color_primary">#009933</color> <color name="color_primary_dark">#009933</color> <color name="accent_color">#009933</color> </resources> then in manifest define style in application tag like:
<application ... .... android:theme="@style/mytheme" >
Comments
Post a Comment