I\'m facing a small problem with the LinearGradient definition in XML. What I want is to use the constructor that accepts the array of colors and the array of positions.
You need to do this in Java code. ShapeDrawable1.java from API Demos has an example.
Shape Drawable details what is available in xml.