9
0
0

布局圆角代码

modu
2024-2-26 2005

布局圆角代码,适用于线性布局、相对布局。

s xxbj1 = st.xxbj(zy.i.xxbj1).st
java
{
    android.graphics.drawable.GradientDrawable shape = new android.graphics.drawable.GradientDrawable();
    shape.setShape(android.graphics.drawable.GradientDrawable.RECTANGLE);
    shape.setCornerRadii(new float[] {50,50,50,50,0,0,0,0});
    shape.setColor(android.graphics.Color.parseColor("#FFFFFF"));
    shape.setStroke(3, android.graphics.Color.parseColor("#FFFFFF"));
    xxbj1.setBackgroundDrawable(shape);
}
上一篇
无更多文章
最新回复 (9)
  • iapp
    2024-3-1
    2

    这个可行

    0 引用
  • modu 楼主
    2024-3-1
    3

    iapp 这个可行
    还行

    0 引用
  • 成毅
    2024-4-14
    4

    0 引用
  • 一枚仓鼠
    2024-4-16
    5

    0 引用
  • 123456789
    11月前
    6

    看看

    0 引用
  • 147234
    11月前
    7

    0 引用
  • 慕云
    11月前
    8

    好的

    0 引用
  • 147234
    11月前
    9

    0 引用
  • Gudan
    10月前
    10

    支持

    0 引用

请先登录后发表评论!

返回