android:topLeftRad...">
美文网首页
安卓代码修改shape颜色

安卓代码修改shape颜色

作者: 盘龙守护 | 来源:发表于2020-12-30 13:15 被阅读0次

<?xml version="1.0" encoding="utf-8"?>

android:topLeftRadius="8dp"

android:topRightRadius="8dp"

android:bottomLeftRadius="8dp"

android:bottomRightRadius="8dp"/>

android:color="#00000000"/>

用下面的方式修改shape的color的颜色值

GradientDrawable myGrad = (GradientDrawable)view.getBackground();

myGrad.setColor(color);

相关文章

网友评论

      本文标题:安卓代码修改shape颜色

      本文链接:https://www.haomeiwen.com/subject/mdhhoktx.html