I have a webview with the following problem: on android and desktop it works perfectly on the first page, but when I click the button to go to the second page, the height of the page does not show entirely. Only in android, the scroll and buttons are not responding, desktop is fine. It's an android project downloaded from another github user...
This is the first page working great
This is the second page issue with scroll and buttons
This is the XML layout code file:
xml code part one
xml code part two
and here are the more important lines about the webview settings located in MainActivity.java file
mainactivty.java webview settings
NOTE: Normally the website is responsive and working perfectly, whatever android, ios, etc... device, its totally responsive and works fine into a web browser in mobile device, tested physically with real device (no android emulator)
The issue is only with the second page...
remove the web view from the NestedScrollView and make it match_parent
Related
I have a WordPress site build on "gutenberg" and it does not display the word "Menu" correctly in the webview, it seems to be slightly outside the left screen, in a Chrome mobile browser there are not thats errors, all elements (word Menu) is in place, all is displayed correctly, but not so in Webview How to fix it?
I use the android 4.4 kitkat on GalaxyGrand 2 i tested only this phone!
(https://cloud.mail.ru/public/2hHz/25DMkxh3U) this is code files you can download and see or use it free!
I am trying to make a little app that shows Timetable, but to make it easier I want to show flash website on fragment webview. How can I do this?
I have tried to enable plugin, but it doesn't enable flashplayer. What would be the best solution to show it in the webview or just in app?
In your Manifest file on application tag add this property
android:hardwareAccelerated="true"
If not working then try setting the below property to your webView.
mWebView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
Note: The above fix does not work in all android phones.
My Android app is using a clickable GridView with embedded (unclickable) images.
The user is able to select an image and go through to the rest of the app because the underlying implemention has intercepted onClick() at the gridview level which conveniently passes through the ImageView element that was selected.
However, the app crashes when I click the ImageView using Appium/WebDriver.
How can I do this in Appium?
Thanks
Rakesh
so it turns out you can click the unclickable! The reason my app was crashing was because bad xpaths are not dealt with well by Appium.
I was able to get the View object and click it.
I am developing a photo sharing app for Android. I have a web site that I want the Android to get WebViews for most of it, but I want the android to have a native home screen rather than the web site homescreen.
As of right now, I open a WebView for login (this is needed because i must login with twitter) but after that I want the android to go to its own native home screen rather that the web site home screen.
I have tried using the shouldOverrideUrl() method to no avail. Is it even possible to program and android app to switch from the WebView at a given url?
Just create a method to check for the URLs to catch. Then make it not call the URL and open the home screen.
I am attempting to create an Android game in Javascript, then I planned on putting it into a WebView. The problem is, although my game works 100% in the default Android browser, running it in a WebView seems to break it somehow. I've looked through all of my code and cannot for the life of me figure out what the issue is.
I used this game as the "codebase" for my own game, and it faces the same issue.
It loads perfectly in the default Android browser but when you put it into a WebView it will no longer play. Simply copy the above link into a webview and see for yourself.
Note I do have Javascript enabled and the webview is functioning properly.
Perhaps the cache manifest?
Have you tried Phonegap? You have all the hard work done and works out of the box.