TextView textView = new TextView(this); GradientDrawable drawable = new GradientDrawable(); drawable.setCornerRadius(5); drawable.setStroke(1, Color.parseColor("#cccccc")); drawable.setColor(Color.parseColor("#eeeeee")); textView.setBackgroundDrawable(drawable);
原文地址:https://www.cnblogs.com/fphuang/p/9061818.html
时间: 2024-12-10 06:33:13