0
我在可绘制文件夹中有一个XML文件。以编程方式更改值
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:padding="10dp">
<solid android:color="#2A3B5E"/>
<corners
android:bottomRightRadius="15dp"
android:bottomLeftRadius="15dp"
android:topLeftRadius="15dp"
android:topRightRadius="15dp"/>
</shape>
我想更改颜色值。是否有可能以编程方式更改值?
您可以更改视图本身的颜色 –
可能重复[以编程方式设置android形状颜色](http://stackoverflow.com/questions/17823451/set-android-shape-color-programmatically) –