4 0 2

布局圆角代码

V modu
2月前 477

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

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);
}
最后于 1月前 被modu编辑 ,原因:
上一篇
无更多文章
最新回复 (4)
  • V iapp 1月前
    0 引用 2

    这个可行

  • V modu 楼主 1月前
    0 引用 3

    iapp 这个可行
    还行

  • 成毅 13天前
    0 引用 4

  • 一枚仓鼠 11天前
    0 引用 5

请先登录后发表评论!

返回
请先登录后发表评论!
4
2