GradientDrawable drawable=new GradientDrawable(); drawable.setShape(GradientDrawable.RECTANGLE); drawable.setGradientType(GradientDrawable.RECTANGLE); drawable.setCornerRadius(60); drawable.setColor(getResources().getColor(android.R.color.darker_gray)); findViewById(R.id.button).setBackground(drawable);
android 代码实现圆角
最新推荐文章于 2024-04-06 15:47:25 发布