//动态设置TextView圆角与背景色 GradientDrawable mGradient = new GradientDrawable(); mGradient.setCornerRadius(12); mGradient.setColor(Color.parseColor("#F22222")); holder.mInd1Tv2.setBackground(mGradient); //holder.mInd1Tv2.setBackgroundTintList(ColorStateList.valueOf(Color.RED));
TextView动态改变圆角或背景颜色
最新推荐文章于 2024-06-25 15:18:35 发布