【发布时间】:2015-12-02 19:36:48
【问题描述】:
我的一项活动在状态栏中突然改变了颜色。默认是黑色的,现在是透明的,为什么?
I've marked around the bar with a circle. By default this is black
我的 XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerInside"
android:id="@+id/do2get"
android:src="@drawable/loading"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="30dp" />
<ProgressBar
style="?android:attr/progressBarStyleLarge"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:indeterminateTint="#00796b"
android:id="@+id/progressBar"
android:layout_below="@+id/do2get"
android:layout_centerHorizontal="true"
android:indeterminateTintMode="src_in"/>
</RelativeLayout>
【问题讨论】:
-
在清单文件中检查活动的主题..
-
我把它写成
android:theme="@style/AppTheme.NoActionBar" >,但我想从屏幕顶部开始(带有时钟和WIFI信号)
标签: android