Answer the question
In order to leave comments, you need to log in
How to round selector?
I made such a multigradient
. How can I put it in a shape? I want to make a circle filled with this gradient
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape android:shape="rectangle">
<gradient
android:angle="0"
android:startColor="#CA3939"
android:endColor="#CA3939"
android:type="linear" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<gradient
android:angle="135"
android:centerX="20%"
android:startColor="#00FFFFFF"
android:centerColor="#00FFFFFF"
android:endColor="#FF9076FF"
android:type="linear" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#00FFFFFF"
android:centerColor="#00FFFFFF"
android:endColor="#FFFFDA7C"
android:type="linear" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<gradient
android:angle="315"
android:centerX="20%"
android:startColor="#00FFFFFF"
android:centerColor="#00FFFFFF"
android:endColor="#FF46CE6C"
android:type="linear" />
</shape>
</item>
</layer-list>
</item>
</selector>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question