如何在Android 2.2及更高版本中获得白色圆形进度条?

时间:2012-07-26 06:04:10

标签: android colors progress-bar

我在使用以下代码时默认获得黑色圆形进度条:

<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent" android:layout_height="fill_parent"
 android:background= "@drawable/login_screen_background">

  <ProgressBar android:layout_centerInParent="true" 
  android:layout_width="wrap_content" android:layout_height="wrap_content" 
  android:id="@+id/authonticateProgressBar"        android:layout_centerHorizontal="true"></ProgressBar>

 <TextView android:id="@+id/sigingInText" 
  android:layout_below="@+id/authonticateProgressBar"     android:layout_width="wrap_content"
  android:layout_height="wrap_content" android:text="@string/signing_in_text"
  android:textColor="#FFFFFF" android:background="@null"
  android:layout_centerHorizontal="true" android:layout_marginTop="50dip"
  android:textSize="17dp">
  </TextView>

</RelativeLayout>

我也尝试添加

style="@android:style/Widget.ProgressBar.Inverse"

但我没有得到一个白色圆形进度条。我的背景设置为黑色图像。

0 个答案:

没有答案