How to add padding around a WebView

后端 未结 7 1596

My layout file defines a WebView, underneath which there are some fixed height buttons.




        
7条回答
  •  清酒与你
    2020-12-16 09:41

    The WebView has a bug in the padding implementation. Setting a padding on a webview won't pad the actual web page, but WILL pad the scrollbars. It's only partially working as expected. Your solution is the best way to achieve 'padding' for a WebView.

提交回复
热议问题