0

How can I make drawable circle with gradient? I would like something that looks like this

enter image description here

Actually I managed to do this :

enter image description here

With the following code :

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="oval">
            <stroke android:width="2dp" android:color="#1E90FF"/>
            <size android:width="60dp" android:height="60dp"/>
        </shape>
    </item>
</selector>
Moussa
  • 3,789
  • 5
  • 24
  • 41
  • @B001ᛦ : Not at all, I want a linear gradient in a circle and not a circular gradient – Moussa Jul 12 '18 at 09:16
  • https://stackoverflow.com/questions/40322955/android-shape-border-with-gradient-and-middle-transparent – AskNilesh Jul 12 '18 at 09:17
  • https://www.google.com/search?client=ubuntu&channel=fs&q=how+to+make+border+grafdien+in+andoird&ie=utf-8&oe=utf-8 – AskNilesh Jul 12 '18 at 09:18

0 Answers0