Questions tagged [webview]

Elements in graphical user interfaces that host HTML content. For Android, look at the android-webview tag. For iOS, look under uiwebview or wkwebview. For VS Code, look under vscode-webview.

A user interface element that displays web pages. Generally, it is the basis upon which you can roll your own web browser or simply display some online content within your application.

: WebView class reference for Android

: WKWebView class reference for iOS

: UIWebView class reference for iOS (deprecated)

: Webview API for Visual Studio Code

: WebView that is used in Ionic

WebView class reference for macOS (deprecated)

webview tag reference for Chrome apps

WebView: a Node that displays WebEngine content.

22469 questions
6
votes
2 answers

Java Desktop app with webview UI

I want some way of creating a dedicated browser window for a browser (chrom-e/ium or firefox). Its content needs to be controlled by a java application (a http call to localhost or better a more direct way of communicating). These two should be…
Blank Chisui
  • 1,043
  • 10
  • 25
6
votes
2 answers

How to move webView cache to SD?

I've seen some apps like dolphin browser (not the HD version, the normal one) utilizing a cache-to-sd for webview but i can't seem to figure out how to do this, does anyone know how to do this or point me in the right direction? Any help is greatly…
Malcolm Lim
  • 135
  • 2
  • 7
6
votes
1 answer

How can I set a JavaFX WebView as big as the scene?

I have a JavaFX WebView which I want to have as big as the scene on start. If I could make it resize with the scene, this would be perfect. But right now I focus just on the initial size. @Override public void start(Stage stage) { try { …
Peter
  • 1,844
  • 2
  • 31
  • 55
6
votes
1 answer

Android WebView adding strange empty space at the bottom

I'm trying to add more empty space to a loaded WebView using JavaScript. I load data using loadDataWithBaseUrl() from a String resource. Then, after measuring some content, I need to make WebView bigger, say for 100 pixels. So I call javascript…
Hawk
  • 392
  • 4
  • 24
6
votes
3 answers

html height 100% ignored by webview

The webview doesn't understand what html height 100% means its just showing a blank page. However, in mobile browser it works perfectly fine. Can anyone help me? I've gone through a lot of suggestions but none of that worked. As you can see in the…
user3300845
  • 127
  • 2
  • 11
6
votes
1 answer

AdjustResize does not work after dismissing keyboard by clicking outside keyboard

I have a WebView (within a Fragment within a ViewPager with SlidingTabLayout). When using the WebView to type, I want the layout to resize to make sure the input is visible. When I click a text input in the WebView, the softkeyboard appears and…
Mdlc
  • 7,128
  • 12
  • 55
  • 98
6
votes
1 answer

Security risks for using WebView (IOS,Android)

I am a beginner in mobile programming and wanted to know if the web view is bad?. I have heard from apps team in our company that enabling web view is a security risk in itself( we deal with finance data :) ). I was planning to use it for a simple…
Aravind R
  • 716
  • 1
  • 10
  • 36
6
votes
0 answers

adjustResize Property Doesn't Work Properly With WebViews in Android

I have an activity that displays an HTML form in a WebView. Here's my manifest:
6
votes
1 answer

How to imitate default browser to download .apk files from webview?

Can someone explain me how I would be able to imitate the default browser when trying to download .apk from the net? So far I have this: WebView webview; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); …
Zack
  • 73
  • 2
  • 4
6
votes
0 answers

About WebView in RecyclerView?

I use the WebView in the first item of RecyclerView, webview load the url include image or video, when i click the image or the video, recyclerview will scroll to the top and webview will continue to load, video will play, how i resolve it? some…
Fang
  • 3,652
  • 4
  • 16
  • 30
6
votes
1 answer

Cordova Share via WhatsApp from a click inside WebView

I've my app built with Cordova (5.5.1) and I'm trying to share Url's via WhatsApp. I'm using the following protocol: whatsapp://send?text= test If I open my website on a mobile browser it's working. On iOS it's working as well. I've tried to add…
vbotio
  • 1,566
  • 3
  • 26
  • 53
6
votes
2 answers

How can I catch scrolling of element inside android webview

I have a SwipeRefreshLayout view as a parent. Inside it i am using a webview that loads web pages. I want to reload webview by pulling down SwipeRefreshLayout. Here is my xml:
Artem
  • 61
  • 1
  • 3
6
votes
3 answers

Is there a way to hide and show the zoom controls on a WebView?

I have a two Views. One is a WebView and the other is an ImageView. I set the auto zoom controls for the WebView like so: webview.getSettings().setBuiltInZoomControls(true); I am just changing the visibility of both Views using GONE and Visible.…
Praveen
  • 90,477
  • 74
  • 177
  • 219
6
votes
1 answer

How to load a local HTML file using WebView in JavaFX

I am looking for a way to display an html file in a different stage once the help button is clicked. public void handleButtonAction(ActionEvent event) throws IOException { if (event.getSource() == help) { stage = (Stage)…
Moe
  • 1,427
  • 4
  • 34
  • 54
6
votes
1 answer

How to set/remember scrollbar thumb position in JavaFX 8 WebView?

I have a question regarding the JavaFX 8 WebView and its scrollbars. I want to reload an HTML document and remember the current vertical scrollbar position. Unfortunately, the scrollbar moves to its initial position whenever I reload the document.…
miho
  • 833
  • 7
  • 11
1 2 3
99
100