Add gradient to imageview

后端 未结 5 1483
失恋的感觉
失恋的感觉 2020-12-04 16:38

I want to add a gradient on the bottom of my image . Something like this :

\"enter

5条回答
  •  难免孤独
    2020-12-04 17:14

    this is how im gonna do, i used relative layout as my parent layout, use the following code

     
            
            
            
                
                
                
            
        
    

    hope you can figure out, here i attach my gradiant code below.use it inside the drawable folder....

    
    
    
    
    
    
    

提交回复
热议问题