GradientDrawable(Orientation orientation, @ColorInt int[] colors)

四個角四個面
Orientation.TOP_BOTTOM
Orientation.TR_BL
Orientation.RIGHT_LEFT
Orientation.BR_TL
Orientation.BOTTOM_TOP
Orientation.BL_TR
Orientation.LEFT_RIGHT
Orientation.TL_BR

三種顏色
int[] colors = {startColor, centerColor, endColor}

設置圓角
setCornerRadii(@Nullable float[] radii)

每一個角可分別指定 [X_radius, Y_radius]順序為左上、右上、右下、左下
radii = {TLX, TLY, TRX, TRY, BRX, BRY, BLX, BLY}

文章標籤
全站熱搜
創作者介紹
創作者 你是誰 的頭像
你是誰

你是誰的部落格

你是誰 發表在 痞客邦 留言(0) 人氣(10)