布局圆角代码,适用于线性布局、相对布局。
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);
}
最后于 8月前
被modu编辑
,原因: