<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:gravity="center|bottom"
android:bottom="5dp">
<shape android:shape="rectangle">
<solid android:color="#FF0000" />
<corners android:radius="2dp" />
<size
android:width="10dp"
android:height="2dp" />
</shape>
</item>
</layer-list>
When set the android:bottom="5dp" in the .xml,it works。But now, need to change the bottom value at runtime. With the debug , xml files was parsed to GradientDrawable. So, how to change the GradientDrawable, makes set the bottom value wokrs? thanks !!!