Using a gradientDrawable with more than three colors set

前端 未结 5 948
孤独总比滥情好
孤独总比滥情好 2020-12-29 06:40

According to what I\'ve read, you can use a gradientDrawable and have three colors set for it, for example:



        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 07:15

    I think the below are possible solutions.

    • You can create multiple shapes with gradients and form a bigger shape.
    • You can create your own GradientDrawable by extending the GradientDrawable Class refer to the below doc.

    • Gradient Drawable Documentation

提交回复
热议问题