I have a button in my custom listview item for which I am using following drawable xml file:
rounded_corner.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="120dp" android:layout_height="100dp">
    <stroke
        android:width="1dp"
        android:color="#FFFFFF" />
    <solid android:color="#002832" />
    <padding
        android:left="1dp"
        android:right="1dp"
        android:top="1dp" />
    <corners android:radius="5dp" />
</shape>
I have used "#002832" color for that drawable. Now, I want to change the color of drawable file programmatically. How can i do this?
PLEASE STOP MARKING AS DUPLICATE WITHOUT UNDERSTANDING THE QUESTION.
I have checked @Ganesh Pokele SO link anf which totally different.
I have checked @bizzard provided link but could not solve my issue.