GradientDrawable gd = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM,new int[]{Color.RED,Color.YELLOW});
textView.setBackground(gd);
设置背景渐变色
最新推荐文章于 2023-02-16 10:46:45 发布
GradientDrawable gd = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM,new int[]{Color.RED,Color.YELLOW});
textView.setBackground(gd);