i trying make circle using xml halo. halo starts green color in center, greenish color keeps fading , @ edges becomes transparent.
how go it?
i trying use following:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <gradient android:centercolor="@drawable/light_green" android:gradientradius="250" android:type="radial" android:endcolor="@android:color/transparent" android:angle="270"/> </shape> still not able desired effect. lead helpful.
try this:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" > <gradient android:angle="270" android:centercolor="#88ff0000" android:centerx="50%p" android:centery="50%p" android:endcolor="#00ff0000" android:gradientradius="50%p" android:startcolor="#ffff0000" android:type="radial" /> <size android:height="80dp" android:width="80dp" /> </shape> change color code , change centercolor's alpha code per requirement
Comments
Post a Comment