我正在尝试创建XML ProgressBar
当我将android:indeterminateTint
和android:progressBackgroundTint
添加到ProgressBar
时,我在编译项目时收到错误error no resource identifier found for attribute 'indeterminateTint' in package 'android'
。
我正在使用Eclipse,如果那样的话。
代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background"
android:gravity="center" >
<ProgressBar
android:id="@+id/loader_animation"
android:layout_width="60dp"
android:layout_height="60dp"
android:indeterminate="true"
android:indeterminateTint="#ffffff"
android:progressBackgroundTint="#000000" />
</RelativeLayout>
我做错了什么?