I have defined XML for gradient.
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:startColor="#9acd32"
android:endColor="#ffffff"
android:angle="180"
/>
i want to use gradient in following code.
XYRegionFormatter regionFormatter3 = new XYRegionFormatter(Color.BLUE);
instead of Color.BLUE
How to use it?
try this…