I am going through test example. Where for some Image background they are using gradient, the code goes like this
Specifies a gradient color for the shape. attributes:
android:angle Integer. The angle for the gradient, in degrees. 0 is left to right, 90 is bottom to top. It must be a multiple of 45. Default is 0.
It seems that the description in the documentation contradict to karn's answer??
You can find more details in the documentation