# ArgbEvaluator

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/animation/ArgbEvaluator#pubctors)\|[Methods](https://developer.android.com/reference/android/animation/ArgbEvaluator#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/animation/ArgbEvaluator#inhmethods)  

# ArgbEvaluator

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/animation/ArgbEvaluator "View this page in Kotlin")\|Java

`
public


class
ArgbEvaluator
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator)`<T>


`

|---|---------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.animation.ArgbEvaluator |

<br />

*** ** * ** ***

This evaluator can be used to perform type interpolation between integer values that represent ARGB colors.

## Summary

|                                               ### Public constructors                                               ||
|------------------------------------------------------------------------------------------------------------------|---|
| ` `[ArgbEvaluator](https://developer.android.com/reference/android/animation/ArgbEvaluator#ArgbEvaluator())`() ` |

|                                                                                                                                                                                                                                                                           ### Public methods                                                                                                                                                                                                                                                                           ||
|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[Object](https://developer.android.com/reference/java/lang/Object) | ` `[evaluate](https://developer.android.com/reference/android/animation/ArgbEvaluator#evaluate(float,%20java.lang.Object,%20java.lang.Object))`(float fraction, `[Object](https://developer.android.com/reference/java/lang/Object)` startValue, `[Object](https://developer.android.com/reference/java/lang/Object)` endValue) ` This function returns the calculated in-between value for a color given integers that represent the start and end values in the four bytes of the 32-bit int. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.animation.TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator)` ` |---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract T` | ` `[evaluate](https://developer.android.com/reference/android/animation/TypeEvaluator#evaluate(float,%20T,%20T))`(float fraction, T startValue, T endValue) ` This function returns the result of linearly interpolating the start and end values, with`fraction`representing the proportion between the start and end values. | ||

## Public constructors

### ArgbEvaluator

```
public ArgbEvaluator ()
```

<br />

<br />

## Public methods

### evaluate

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Object evaluate (float fraction, 
                Object startValue, 
                Object endValue)
```

This function returns the calculated in-between value for a color given integers that represent the start and end values in the four bytes of the 32-bit int. Each channel is separately linearly interpolated and the resulting calculated values are recombined into the return value.

<br />

|                                                  Parameters                                                  ||
|--------------|------------------------------------------------------------------------------------------------|
| `fraction`   | `float`: The fraction from the starting to the ending values <br />                            |
| `startValue` | `Object`: A 32-bit int value representing colors in the separate bytes of the parameter <br /> |
| `endValue`   | `Object`: A 32-bit int value representing colors in the separate bytes of the parameter <br /> |

|                                                                                                                                                      Returns                                                                                                                                                       ||
|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Object](https://developer.android.com/reference/java/lang/Object) | A value that is calculated to be the linearly interpolated result, derived by separating the start and end values into separate color channels and interpolating each one separately, recombining the resulting values in the same way. <br /> |