Most visited

Recently visited

Added in API level 1

GradientDrawable.Orientation

public static final enum GradientDrawable.Orientation
extends Enum<GradientDrawable.Orientation>

java.lang.Object
   ↳ java.lang.Enum<android.graphics.drawable.GradientDrawable.Orientation>
     ↳ android.graphics.drawable.GradientDrawable.Orientation


控制渐变相对于可绘制边界的方向

Summary

Enum values

GradientDrawable.Orientation  BL_TR

从左下角到右上角绘制渐变

GradientDrawable.Orientation  BOTTOM_TOP

从底部到顶部绘制渐变

GradientDrawable.Orientation  BR_TL

从右下角到左上角绘制渐变

GradientDrawable.Orientation  LEFT_RIGHT

从左到右绘制渐变

GradientDrawable.Orientation  RIGHT_LEFT

从右到左绘制渐变

GradientDrawable.Orientation  TL_BR

绘制从左上角到右下角的渐变

GradientDrawable.Orientation  TOP_BOTTOM

从顶部到底部绘制渐变

GradientDrawable.Orientation  TR_BL

绘制从右上角到左下角的渐变

Public methods

static GradientDrawable.Orientation valueOf(String name)
static final Orientation[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

BL_TR

Added in API level 1
GradientDrawable.Orientation BL_TR

从左下角到右上角绘制渐变

BOTTOM_TOP

Added in API level 1
GradientDrawable.Orientation BOTTOM_TOP

从底部到顶部绘制渐变

BR_TL

Added in API level 1
GradientDrawable.Orientation BR_TL

从右下角到左上角绘制渐变

LEFT_RIGHT

Added in API level 1
GradientDrawable.Orientation LEFT_RIGHT

从左到右绘制渐变

RIGHT_LEFT

Added in API level 1
GradientDrawable.Orientation RIGHT_LEFT

从右到左绘制渐变

TL_BR

Added in API level 1
GradientDrawable.Orientation TL_BR

绘制从左上角到右下角的渐变

TOP_BOTTOM

Added in API level 1
GradientDrawable.Orientation TOP_BOTTOM

从顶部到底部绘制渐变

TR_BL

Added in API level 1
GradientDrawable.Orientation TR_BL

绘制从右上角到左下角的渐变

Public methods

valueOf

Added in API level 1
GradientDrawable.Orientation valueOf (String name)

Parameters
name String
Returns
GradientDrawable.Orientation

values

Added in API level 1
Orientation[] values ()

Returns
Orientation[]

Hooray!