Modify an element inside a list-drawable xml layer

My question is simple, I have this file in a folder drawable:popup1.xml

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:left="8dp" android:id="@+id/bm1b" >
        <bitmap android:src="@drawable/flepop01" android:gravity="top|left"  ></bitmap>        
    </item>

</layer-list>

How can I change the value of the β€œleft” property programmatically from my activity?

+5
source share

All Articles