# DrawerArrowDrawable

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1  
Summary:[Constants](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#constants)\|[Ctors](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#)  

# DrawerArrowDrawable

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


class
DrawerArrowDrawable
`  
`


``

extends `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)`


``


`

|---|---|----------------------------------------------------------|
| java.lang.Object                                               |||
| ↳ | [android.graphics.drawable.Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) ||
|   | ↳ | android.support.v7.graphics.drawable.DrawerArrowDrawable |

<br />

*** ** * ** ***

A drawable that can draw a "Drawer hamburger" menu or an arrow and animate between them.

The progress between the two states is controlled via[setProgress(float)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setProgress(float)).

<br />

## Summary

|                                                                                                ### Constants                                                                                                ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [ARROW_DIRECTION_END](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_END) Direction to make the arrow point to the end.            |
| `int` | [ARROW_DIRECTION_LEFT](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_LEFT) Direction to make the arrow point towards the left.    |
| `int` | [ARROW_DIRECTION_RIGHT](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_RIGHT) Direction to make the arrow point towards the right. |
| `int` | [ARROW_DIRECTION_START](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_START) Direction to make the arrow point towards the start. |

|                                                                                                                         ### Public constructors                                                                                                                          ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[DrawerArrowDrawable](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#DrawerArrowDrawable(android.content.Context))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context) ` |

|                                                                                                                                                                          ### Public methods                                                                                                                                                                          ||
|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                               | ` `[draw](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#draw(android.graphics.Canvas))`(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` canvas) `                                         |
| ` float`                                                                              | ` `[getArrowHeadLength](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getArrowHeadLength())`() ` Returns the length of the arrow head (from tip to edge, perpendicular to the shaft), in pixels.                           |
| ` float`                                                                              | ` `[getArrowShaftLength](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getArrowShaftLength())`() ` Returns the arrow shaft length in pixels.                                                                               |
| ` float`                                                                              | ` `[getBarLength](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getBarLength())`() ` The length of the bars when they are parallel to each other.                                                                          |
| ` float`                                                                              | ` `[getBarThickness](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getBarThickness())`() ` Returns the thickness (stroke width) of the bars.                                                                               |
| ` int`                                                                                | ` `[getColor](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getColor())`() ` Returns the color of the drawable.                                                                                                            |
| ` int`                                                                                | ` `[getDirection](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getDirection())`() ` Returns the arrow direction.                                                                                                          |
| ` float`                                                                              | ` `[getGapSize](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getGapSize())`() ` Returns the max gap between the bars when they are parallel to each other.                                                                |
| ` int`                                                                                | ` `[getIntrinsicHeight](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getIntrinsicHeight())`() `                                                                                                                           |
| ` int`                                                                                | ` `[getIntrinsicWidth](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getIntrinsicWidth())`() `                                                                                                                             |
| ` int`                                                                                | ` `[getOpacity](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getOpacity())`() `                                                                                                                                           |
| ` final `[Paint](https://developer.android.com/reference/android/graphics/Paint.html) | ` `[getPaint](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getPaint())`() ` Returns the paint instance used for all drawing.                                                                                              |
| ` float`                                                                              | ` `[getProgress](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getProgress())`() ` Returns the current progress of the arrow.                                                                                              |
| ` boolean`                                                                            | ` `[isSpinEnabled](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#isSpinEnabled())`() ` Returns whether the bars should rotate or not during the transition.                                                                |
| ` void`                                                                               | ` `[setAlpha](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setAlpha(int))`(int alpha) `                                                                                                                                   |
| ` void`                                                                               | ` `[setArrowHeadLength](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setArrowHeadLength(float))`(float length) ` Sets the length of the arrow head (from tip to edge, perpendicular to the shaft).                        |
| ` void`                                                                               | ` `[setArrowShaftLength](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setArrowShaftLength(float))`(float length) ` Sets the arrow shaft length.                                                                           |
| ` void`                                                                               | ` `[setBarLength](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setBarLength(float))`(float length) ` Sets the length of the bars when they are parallel to each other.                                                    |
| ` void`                                                                               | ` `[setBarThickness](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setBarThickness(float))`(float width) ` Sets the thickness (stroke size) for the bars.                                                                  |
| ` void`                                                                               | ` `[setColor](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setColor(int))`(int color) ` Sets the color of the drawable.                                                                                                   |
| ` void`                                                                               | ` `[setColorFilter](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setColorFilter(android.graphics.ColorFilter))`(`[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)` colorFilter) ` |
| ` void`                                                                               | ` `[setDirection](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setDirection(int))`(int direction) ` Set the arrow direction.                                                                                              |
| ` void`                                                                               | ` `[setGapSize](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setGapSize(float))`(float gap) ` Sets the max gap between the bars when they are parallel to each other.                                                     |
| ` void`                                                                               | ` `[setProgress](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setProgress(float))`(float progress) ` Set the progress of the arrow.                                                                                       |
| ` void`                                                                               | ` `[setSpinEnabled](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setSpinEnabled(boolean))`(boolean enabled) ` Returns whether the bars should rotate or not during the transition.                                        |
| ` void`                                                                               | ` `[setVerticalMirror](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setVerticalMirror(boolean))`(boolean verticalMirror) ` If set, canvas is flipped when progress reached to end and going back to start.                |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#)From class` `[android.graphics.drawable.Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` ` |----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                    | ` applyTheme(`[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg0) `                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                 | ` canApplyTheme() `                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                                    | ` clearColorFilter() `                                                                                                                                                                                                                                                                                                                                                      | | ` final `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                        | ` copyBounds() `                                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                                                              | ` copyBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                           | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromPath(String arg0) `                                                                                                                                                                                                                                                                                                                                             | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromResourceStream(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[TypedValue](https://developer.android.com/reference/android/util/TypedValue.html)` arg1, InputStream arg2, String arg3, `[BitmapFactory.Options](https://developer.android.com/reference/android/graphics/BitmapFactory.Options.html)` arg4) ` | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromResourceStream(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[TypedValue](https://developer.android.com/reference/android/util/TypedValue.html)` arg1, InputStream arg2, String arg3) `                                                                                                                      | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromStream(InputStream arg0, String arg1) `                                                                                                                                                                                                                                                                                                                         | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXml(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1) `                                                                                                                                                                                                                                       | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXml(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg2) `                                                                                                                           | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXmlInner(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg3) `                       | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXmlInner(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                   | | ` abstract void`                                                                                                           | ` draw(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                                                                                                                                             | | ` int`                                                                                                                     | ` getAlpha() `                                                                                                                                                                                                                                                                                                                                                              | | ` final `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                        | ` getBounds() `                                                                                                                                                                                                                                                                                                                                                             | | ` `[Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)           | ` getCallback() `                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                                                     | ` getChangingConfigurations() `                                                                                                                                                                                                                                                                                                                                             | | ` `[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)                                | ` getColorFilter() `                                                                                                                                                                                                                                                                                                                                                        | | ` `[Drawable.ConstantState](https://developer.android.com/reference/android/graphics/drawable/Drawable.ConstantState.html) | ` getConstantState() `                                                                                                                                                                                                                                                                                                                                                      | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                             | ` getCurrent() `                                                                                                                                                                                                                                                                                                                                                            | | ` `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                              | ` getDirtyBounds() `                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                                    | ` getHotspotBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                     | | ` int`                                                                                                                     | ` getIntrinsicHeight() `                                                                                                                                                                                                                                                                                                                                                    | | ` int`                                                                                                                     | ` getIntrinsicWidth() `                                                                                                                                                                                                                                                                                                                                                     | | ` int`                                                                                                                     | ` getLayoutDirection() `                                                                                                                                                                                                                                                                                                                                                    | | ` final int`                                                                                                               | ` getLevel() `                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                                                     | ` getMinimumHeight() `                                                                                                                                                                                                                                                                                                                                                      | | ` int`                                                                                                                     | ` getMinimumWidth() `                                                                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                            | ` getOpacity() `                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                                    | ` getOutline(`[Outline](https://developer.android.com/reference/android/graphics/Outline.html)` arg0) `                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                 | ` getPadding(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                           | | ` int[]`                                                                                                                   | ` getState() `                                                                                                                                                                                                                                                                                                                                                              | | ` `[Region](https://developer.android.com/reference/android/graphics/Region.html)                                          | ` getTransparentRegion() `                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                                    | ` inflate(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg3) `                                  | | ` void`                                                                                                                    | ` inflate(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                              | | ` void`                                                                                                                    | ` invalidateSelf() `                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                 | ` isAutoMirrored() `                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                 | ` isFilterBitmap() `                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                 | ` isStateful() `                                                                                                                                                                                                                                                                                                                                                            | | ` final boolean`                                                                                                           | ` isVisible() `                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                                    | ` jumpToCurrentState() `                                                                                                                                                                                                                                                                                                                                                    | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                             | ` mutate() `                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                                    | ` onBoundsChange(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                 | ` onLayoutDirectionChanged(int arg0) `                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                 | ` onLevelChange(int arg0) `                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                 | ` onStateChange(int[] arg0) `                                                                                                                                                                                                                                                                                                                                               | | ` static int`                                                                                                              | ` resolveOpacity(int arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                    | ` scheduleSelf(Runnable arg0, long arg1) `                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                                           | ` setAlpha(int arg0) `                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                    | ` setAutoMirrored(boolean arg0) `                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                    | ` setBounds(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                                    | ` setBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                            | | ` final void`                                                                                                              | ` setCallback(`[Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)` arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                    | ` setChangingConfigurations(int arg0) `                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                                    | ` setColorFilter(int arg0, `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg1) `                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                           | ` setColorFilter(`[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)` arg0) `                                                                                                                                                                                                                                                         | | ` void`                                                                                                                    | ` setDither(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                                    | ` setFilterBitmap(boolean arg0) `                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                    | ` setHotspot(float arg0, float arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                    | ` setHotspotBounds(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                                           | ` setLayoutDirection(int arg0) `                                                                                                                                                                                                                                                                                                                                            | | ` final boolean`                                                                                                           | ` setLevel(int arg0) `                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                 | ` setState(int[] arg0) `                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                    | ` setTint(int arg0) `                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                                    | ` setTintList(`[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)` arg0) `                                                                                                                                                                                                                                                   | | ` void`                                                                                                                    | ` setTintMode(`[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg0) `                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                 | ` setVisible(boolean arg0, boolean arg1) `                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                                    | ` unscheduleSelf(Runnable arg0) `                                                                                                                                                                                                                                                                                                                                           | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### ARROW_DIRECTION_END

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ARROW_DIRECTION_END
```

Direction to make the arrow point to the end.

When used in a view with a[RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL)layout direction, this is the same as[ARROW_DIRECTION_LEFT](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_LEFT), otherwise it is the same as[ARROW_DIRECTION_RIGHT](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_RIGHT).

<br />

<br />

**See also:**

- [setDirection(int)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setDirection(int))
- [getDirection()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getDirection())

Constant Value: 3 (0x00000003)  

### ARROW_DIRECTION_LEFT

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ARROW_DIRECTION_LEFT
```

Direction to make the arrow point towards the left.

<br />

**See also:**

- [setDirection(int)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setDirection(int))
- [getDirection()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getDirection())

Constant Value: 0 (0x00000000)  

### ARROW_DIRECTION_RIGHT

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ARROW_DIRECTION_RIGHT
```

Direction to make the arrow point towards the right.

<br />

**See also:**

- [setDirection(int)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setDirection(int))
- [getDirection()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getDirection())

Constant Value: 1 (0x00000001)  

### ARROW_DIRECTION_START

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ARROW_DIRECTION_START
```

Direction to make the arrow point towards the start.

When used in a view with a[RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL)layout direction, this is the same as[ARROW_DIRECTION_RIGHT](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_RIGHT), otherwise it is the same as[ARROW_DIRECTION_LEFT](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#ARROW_DIRECTION_LEFT).

<br />

<br />

**See also:**

- [setDirection(int)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setDirection(int))
- [getDirection()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getDirection())

Constant Value: 2 (0x00000002)

## Public constructors

### DrawerArrowDrawable

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
DrawerArrowDrawable (Context context)
```

<br />

<br />

|                                    Parameters                                    ||
|-----------|-----------------------------------------------------------------------|
| `context` | `Context`: used to get the configuration for the drawable from <br /> |

## Public methods

### draw

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void draw (Canvas canvas)
```

<br />

<br />

|        Parameters         ||
|----------|-----------------|
| `canvas` | `Canvas` <br /> |

### getArrowHeadLength

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getArrowHeadLength ()
```

Returns the length of the arrow head (from tip to edge, perpendicular to the shaft), in pixels.

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getArrowShaftLength

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getArrowShaftLength ()
```

Returns the arrow shaft length in pixels.

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getBarLength

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getBarLength ()
```

The length of the bars when they are parallel to each other.

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getBarThickness

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getBarThickness ()
```

Returns the thickness (stroke width) of the bars.

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getColor

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getColor ()
```

Returns the color of the drawable.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getDirection

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getDirection ()
```

Returns the arrow direction.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getGapSize

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getGapSize ()
```

Returns the max gap between the bars when they are parallel to each other.

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

**See also:**

- [getGapSize()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getGapSize())  

### getIntrinsicHeight

```
int getIntrinsicHeight ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getIntrinsicWidth

```
int getIntrinsicWidth ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getOpacity

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getOpacity ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getPaint

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Paint getPaint ()
```

Returns the paint instance used for all drawing.

<br />

|                                       Returns                                        ||
|------------------------------------------------------------------------------|--------|
| [Paint](https://developer.android.com/reference/android/graphics/Paint.html) | <br /> |

### getProgress

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getProgress ()
```

Returns the current progress of the arrow.

<br />

|                     Returns                      ||
|---------|-----------------------------------------|
| `float` | Value is between 0.0 and 1.0 inclusive. |

### isSpinEnabled

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isSpinEnabled ()
```

Returns whether the bars should rotate or not during the transition.

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

**See also:**

- [setSpinEnabled(boolean)](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#setSpinEnabled(boolean))  

### setAlpha

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAlpha (int alpha)
```

<br />

<br />

|      Parameters       ||
|---------|--------------|
| `alpha` | `int` <br /> |

### setArrowHeadLength

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setArrowHeadLength (float length)
```

Sets the length of the arrow head (from tip to edge, perpendicular to the shaft).

<br />

|                   Parameters                   ||
|----------|--------------------------------------|
| `length` | `float`: the length in pixels <br /> |

### setArrowShaftLength

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setArrowShaftLength (float length)
```

Sets the arrow shaft length.

<br />

|                   Parameters                   ||
|----------|--------------------------------------|
| `length` | `float`: the length in pixels <br /> |

### setBarLength

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setBarLength (float length)
```

Sets the length of the bars when they are parallel to each other.

<br />

|                   Parameters                   ||
|----------|--------------------------------------|
| `length` | `float`: the length in pixels <br /> |

### setBarThickness

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setBarThickness (float width)
```

Sets the thickness (stroke size) for the bars.

<br />

|                   Parameters                    ||
|---------|----------------------------------------|
| `width` | `float`: stroke width in pixels <br /> |

### setColor

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setColor (int color)
```

Sets the color of the drawable.

<br />

|      Parameters       ||
|---------|--------------|
| `color` | `int` <br /> |

### setColorFilter

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setColorFilter (ColorFilter colorFilter)
```

<br />

<br />

|             Parameters              ||
|---------------|----------------------|
| `colorFilter` | `ColorFilter` <br /> |

### setDirection

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setDirection (int direction)
```

Set the arrow direction.

<br />

|        Parameters         ||
|-------------|--------------|
| `direction` | `int` <br /> |

### setGapSize

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setGapSize (float gap)
```

Sets the max gap between the bars when they are parallel to each other.

<br />

|                Parameters                ||
|-------|-----------------------------------|
| `gap` | `float`: the gap in pixels <br /> |

**See also:**

- [getGapSize()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#getGapSize())  

### setProgress

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setProgress (float progress)
```

Set the progress of the arrow.

A value of`0.0`indicates that the arrow should be drawn in its starting position. A value of`1.0`indicates that the arrow should be drawn in its ending position.

<br />

<br />

|                         Parameters                          ||
|------------|-------------------------------------------------|
| `progress` | `float` Value is between 0.0 and 1.0 inclusive. |

### setSpinEnabled

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSpinEnabled (boolean enabled)
```

Returns whether the bars should rotate or not during the transition.

<br />

|                          Parameters                          ||
|-----------|---------------------------------------------------|
| `enabled` | `boolean`: true if the bars should rotate. <br /> |

**See also:**

- [isSpinEnabled()](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable#isSpinEnabled())  

### setVerticalMirror

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setVerticalMirror (boolean verticalMirror)
```

If set, canvas is flipped when progress reached to end and going back to start.

<br />

|             Parameters             ||
|------------------|------------------|
| `verticalMirror` | `boolean` <br /> |

-

  ## Classes

  - [DrawerArrowDrawable](https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable)