I need a gradient circle with 4 colours at 4 locations in Android.I have been searching for it google but found none.I got solution for only 3 colours with different opacities.I will give my colour specifications.Please help me with xml solution which will work in Android Studio

Color Code: Gradient Type:Radial Shape:Circle Location:100% Color:#f29265 Alpha:100% Location:87% Color:#f29265 Alpha:100% Location:45% Color:#f76394 Alpha:100% Location:0% Color:#f76394 Alpha:100%

        <gradient
            android:gradientRadius="70dp"
            android:centerX="50%"
            android:centerY="50%"
            android:centerColor="#73F76394"
            android:startColor="#00F76394"
            android:endColor="#F92965"
            android:type="radial"
            />

1 Answers

0
Viswanath Kumar Sandu On

It is not possible to create a gradient with more than 3 colors in android.