How to make transparent gradient?

后端 未结 3 1417
既然无缘
既然无缘 2020-12-07 15:21

I have the following gradient:


    

        
相关标签:
3条回答
  • 2020-12-07 16:15

    Just use an 8-digit color value, e.g. #FFF8F8F6, where the first two characters are the alpha value. FF being fully opaque, and 00 being fully transparent.

    0 讨论(0)
  • 2020-12-07 16:15

    android:background="#00000000" android:cacheColorHint="#00000000"

    this will make is transparent however, this is to make it a full transparency...

    0 讨论(0)
  • You can try the following code :

    <gradient android:startColor="#hex_of_any_color" android:endColor="#00000"/>
    
    0 讨论(0)
提交回复
热议问题