Android: give a webview rounded corners?

前端 未结 6 1880
隐瞒了意图╮
隐瞒了意图╮ 2020-12-17 14:27

I\'m trying to give my webView rounded corners.

Here is my code:

rounded_webview.xml:




        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-17 15:00

    You can use a CardView to contain the webview, and you just need to add the corner radius that you want with with app:cardCornerRadius :

                            // HERE
    
                
    
        
    

    And that's all

提交回复
热议问题