//设置从上到下的渐变色
GradientDrawable gradient=new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM,new int[]{Color.RED,Color.YELLOW});
getWindow().setBackgroundDrawable(gradient);
设置渐变背景色
最新推荐文章于 2024-01-31 21:27:16 发布