[英]android - Bug Status Bar and navigation Bar TRANSPARENT
僅在首次打開應用程序時,半透明狀態欄才出現問題。 看一下屏幕截圖:
這是我使用的樣式的XML,其中包括半透明的狀態欄:
<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>
和我的主題:
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
將其放在清單的活動標簽內。 這樣可以確保該應用全屏打開。
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.