statusbar - android - Bug Status Bar and navigation Bar TRANSPARENT -
i have problem translucent statusbar when opening of app first time. take @ screenshot:
here xml of style use including translucent status bar:
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:cliptopadding="false" android:fitssystemwindows="true" android:orientation="vertical" > <com.viewpagerindicator.pagerslidingtabstrip android:id="@+id/indicatortabhome" android:layout_width="match_parent" android:layout_height="40dp" android:cliptopadding="false" android:fitssystemwindows="true" > </com.viewpagerindicator.pagerslidingtabstrip> <android.support.v4.view.viewpager android:id="@+id/vpmain" android:layout_width="match_parent" android:layout_height="match_parent" > </android.support.v4.view.viewpager>
and theme:
<style name="mytheme" parent="@android:style/theme.holo.light"> <item name="android:windowcontentoverlay">@null</item> <item name="android:windowtranslucentstatus">true</item> </style>
put inside activity tag in manifest. this'll ensure app opens full screen.
android:label="@string/app_name" android:theme="@android:style/theme.notitlebar.fullscreen"
Comments
Post a Comment