Is it possible to set android:gradientRadius of a drawable via Java or is it only possible to set this attribute via Xml?
+1
A:
The GradientDrawable
class has the setGradientRadius(float)
method, so as long as whatever drawable you are trying to modify extends that class, yes.
http://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html
codelark
2010-10-17 15:46:58