Error not found resource id for attribute 'indeterminateTint' in package 'android'

I am trying to create XML ProgressBar

.
When I add the android:indeterminateTint

and android:progressBackgroundTint

to attributes ProgressBar

, I get an error error no resource identifier found for attribute 'indeterminateTint' in package 'android'

when I compile the project.
I am using Eclipse if that matches.

Code:

<?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>

      

What am I doing wrong?

+3


source to share





All Articles