Circular gradient in android

后端 未结 7 927
灰色年华
灰色年华 2020-12-04 06:30

I\'m trying to make a gradient that emits from the middle of the screen in white, and turns to black as it moves toward the edges of the screen.

As I make a \"normal

7条回答
  •  甜味超标
    2020-12-04 07:21

    I guess you should add android:centerColor

    
    
    
    

    This example displays a horizontal gradient from white to black to white.

提交回复
热议问题