angle attribute in android gradient

后端 未结 3 725
星月不相逢
星月不相逢 2020-12-07 10:17

I am going through test example. Where for some Image background they are using gradient, the code goes like this



        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 11:13

    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

提交回复
热议问题