https://kotlinlang.org logo
#android
Title
# android
s

Schadenfreude

05/03/2019, 8:57 AM
Hey all! I have this drawable:
Copy code
<layer-list xmlns:android="<http://schemas.android.com/apk/res/android>">
    <item>
        <shape android:shape="oval">
            <solid android:color="@color/black"/>
        </shape>
    </item>
    <item
            android:drawable="@drawable/btn_pen"
            android:bottom="20dp"
            android:left="20dp"
            android:right="20dp"
            android:top="20dp"/>
</layer-list>
And I want to programatically change the color of the oval shape, is there any way to do that (so far I’ve not found anything useful via Google searches)?
stackoverflow 3
google 3
l

leosan

05/03/2019, 9:08 AM
s

Schadenfreude

05/03/2019, 9:13 AM
Wow, thanks! I guess I just didn’t really know what exactly to search for >.>
4 Views