Wie ändere ich die Farbe im Code?

Ich habe einShape definiert inxml. Jetzt muss ich a ändernsolid color Könnten Sie bitte aus dem Code raten, wie?

<?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="#000000"/>
    <corners
        android:bottomRightRadius="8dp"
        android:bottomLeftRadius="8dp"
        android:topLeftRadius="0dp"
        android:topRightRadius="0dp"/>
</shape>

Antworten auf die Frage(2)

Ihre Antwort auf die Frage