How to make a drawable Shape programmatically (Android)
问题 i'm making a custom TextView (Java class) and i'm having trouble "to translate" the line (on "original TextView" xml) android:background="@drawable/myDrawableShape" to a java void to change the color of the "myDrawableShape" myDrawableShape.xml <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#ffafafaf" /> <corners android:radius="15dp" /> I'll get the color to set from a String, the void to change the color programmatically could be (for example) void