Alpha-gradient on Android

前端 未结 4 1027
梦谈多话
梦谈多话 2020-12-08 21:40

I need to create an alpha-gradient on the edge of the ImageView. Preferably using only XML.

Image for example

4条回答
  •  隐瞒了意图╮
    2020-12-08 22:04

    
        
            
        
    

    perfect transperancy. Make sure that the View below gradient is actually below and not just touching Gradient shape View.

    If you have main RelativeLayout, ListView and View(Background:Gradient )

    make sure that Gradient View is on top, of the ListView, and not a side. If Your gradient is aside it will be transparent by RelativeLayout Background Color and not by ListView .

    i hope you understand what i want to say.

提交回复
热议问题