public class UISuperLinearLayout extends LinearLayout implements RoundStatus
| 构造器和说明 |
|---|
UISuperLinearLayout(Context context) |
UISuperLinearLayout(Context context,
AttributeSet attrs) |
UISuperLinearLayout(Context context,
AttributeSet attrs,
int defStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(Canvas canvas) |
int |
getBorderColor()
获取边框颜色
|
float |
getBorderWidth()
获取边框宽度
|
float |
getBottomLeftRadius()
获取左下角圆角半径
|
float |
getBottomRightRadius()
获取右下角圆角半径
|
int |
getStartColor()
获取渐变色开始颜色
|
int |
getStopColor()
获取渐变色结束颜色
|
float |
getTopLeftRadius()
获取左上角圆角半径
|
float |
getTopRightRadius()
获取右上角圆角半径
|
int |
getViewMeasureMode()
获取最大尺寸模式
|
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onSizeChanged(int w,
int h,
int oldW,
int oldH) |
void |
setBorderColor(int borderColor)
设置边框颜色
|
void |
setBorderWidth(float width)
设置边框宽度
|
void |
setBottomLeftRadius(float bottomLeftRadius)
设置左下角圆角半径
|
void |
setBottomRightRadius(float bottomRightRadius)
设置右下角圆角半径
|
void |
setRadius(float radius)
设置所有圆角的半径
|
void |
setTopLeftRadius(float topLeftRadius)
设置左上角圆角半径
|
void |
setTopRightRadius(float topRightRadius)
设置右上角圆角半径
|
void |
update(int w,
int h)
刷新ui
|
public UISuperLinearLayout(Context context,
AttributeSet attrs,
int defStyle)
public UISuperLinearLayout(Context context,
AttributeSet attrs)
public UISuperLinearLayout(Context context)
protected void onSizeChanged(int w,
int h,
int oldW,
int oldH)
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
public void draw(Canvas canvas)
public void setRadius(float radius)
RoundStatussetRadius 在接口中 RoundStatuspublic void setTopLeftRadius(float topLeftRadius)
RoundStatussetTopLeftRadius 在接口中 RoundStatuspublic void setTopRightRadius(float topRightRadius)
RoundStatussetTopRightRadius 在接口中 RoundStatuspublic void setBottomRightRadius(float bottomRightRadius)
RoundStatussetBottomRightRadius 在接口中 RoundStatuspublic void setBottomLeftRadius(float bottomLeftRadius)
RoundStatussetBottomLeftRadius 在接口中 RoundStatuspublic void setBorderWidth(float width)
RoundStatussetBorderWidth 在接口中 RoundStatuspublic void setBorderColor(int borderColor)
RoundStatussetBorderColor 在接口中 RoundStatuspublic float getTopLeftRadius()
RoundStatusgetTopLeftRadius 在接口中 RoundStatuspublic float getTopRightRadius()
RoundStatusgetTopRightRadius 在接口中 RoundStatuspublic float getBottomRightRadius()
RoundStatusgetBottomRightRadius 在接口中 RoundStatuspublic float getBottomLeftRadius()
RoundStatusgetBottomLeftRadius 在接口中 RoundStatuspublic float getBorderWidth()
RoundStatusgetBorderWidth 在接口中 RoundStatuspublic int getBorderColor()
RoundStatusgetBorderColor 在接口中 RoundStatuspublic int getViewMeasureMode()
RoundStatusgetViewMeasureMode 在接口中 RoundStatuspublic int getStartColor()
RoundStatusgetStartColor 在接口中 RoundStatuspublic int getStopColor()
RoundStatusgetStopColor 在接口中 RoundStatuspublic void update(int w,
int h)
RoundStatusupdate 在接口中 RoundStatus