I have a android app using a webview to load a webpage, however in the graphical layout and in the app it shows a white thick border, I tried resizing and I tried changing the width and height in the XML layout file, but no change. Please check the below image for reference.
Add a close button and on its click set: webview. setVisibility(View. INVISIBLE); webview.
Try to modify your HTML content like this:
<body style='margin:0;padding:0;'>
This seems to work for me:
String frameString = "<html><body style='margin:0;padding:0;'><iframe src=\"http://k-video.com/\" height=\"410\" width=\"320\" frameborder=\"0\" allowfullscreen></iframe></body></html>";
Hope it helps !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With