I am using the library. In which I show the activity used by my library, I use color to cover the screen with color. he looks cool.
But for some reason, I decided to use a gradient. I designed a beautiful gradient effect, as you can see below
<?xml version="1.0" encoding="UTF-8"?>
<gradient
android:angle="90"
android:endColor="#555994"
android:centerColor="#b5b6d2"
android:startColor="#555994"
android:type="linear" />
<corners
android:radius="0dp"/>
</shape>
he looks good. But the problem is that I use a library that accepts only color or color. I have no other method for changing, the library is showing activity, I just have to pass the color that will be displayed in the action.
Now my question is:
color.xml. , , . .
, . .
1:
, , - , ,
.withColorResource(R.color.indigo)
, Color.xml, , , .
, , . , .