hello what i want to do is setting a value in a drawable
file bg.xml
here is the file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:startColor="#ffc2e59c"
android:centerColor="#ff3a7a7a"
android:endColor="#ff3a7a7a"
android:angle="135"/>
</shape>
</item>
</selector>
i want to change android:startColor="#ffc2e59c"
if a file exists . ( i already know using if to make it use the line . )
so what i want to do is
my lines {
if (filee.exists()) {
change the color to something else
(android:startColor="#ffffffff")
}
}