Android shape border with gradient and middle transparent

前端 未结 1 1536
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 09:54

I need to create a round corner border, where border with gradient.enter link description here is working.But My page is using a image as background which is also with gradi

1条回答
  •  Happy的楠姐
    2020-12-15 10:40

    round_background.xml

    
    
    
        
        
    
    

    round_border.xml

    
    
    
    
    

    result_drawable.xml

    
    
    
      
      
    
    
    

    Here, you can set android:width="4dp" in round_background.xml to set size of your border. use result result_drawable.xml where you want.. Enjoy. :}

    0 讨论(0)
提交回复
热议问题