Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Issue with webview #44

Closed
hirakchhatbar opened this issue May 27, 2015 · 5 comments
Closed

Issue with webview #44

hirakchhatbar opened this issue May 27, 2015 · 5 comments

Comments

@hirakchhatbar
Copy link

Look the white background at the top of webview.. It is covering the backgorund set to viewpager.. Is this a bug?

screenshot_2015-05-27-12-32-26 1

@hirakchhatbar
Copy link
Author

Same thing happens when another link is opened in webview... It covers entire height and hence covers up the viewpager background

@florent37
Copy link
Owner

No it's not a bug. I have to get a full height scroller, so my only
solution is to make the background clear color and add a margin into the
top.
I really hate webviews, so I don't think i'm gonna modify this. But if you
have another solution you can create a pull request, I will merge it ;)

2015-05-27 9:08 GMT+02:00 sach200 notifications@github.com:

Same thing happens when another link is opened in webview... It covers
entire height and hence covers up the viewpager background


Reply to this email directly or view it on GitHub
#44 (comment)
.

@hirakchhatbar
Copy link
Author

I added transparent background color and added margin at the top.. Got this!!!! The white rectangle doesnt scroll... Webview scrolls in half portion only
screenshot_2015-05-27-13-46-18 1

@florent37
Copy link
Owner

and add

webSettings.setRenderPriority(WebSettings.RenderPriority.HIGH); webSettings.
setCacheMode(WebSettings.LOAD_NO_CACHE); webSettings.setJavaScriptEnabled(
true); webSettings.setDomStorageEnabled(true); //transparent background
webView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);

2015-05-27 10:18 GMT+02:00 sach200 notifications@github.com:

I added transparent background color and added margin at the top.. Got
this!!!! The white rectangle doesnt scroll... Webview scrolls in half
portion only
[image: screenshot_2015-05-27-13-46-18 1]
https://cloud.githubusercontent.com/assets/12546237/7831699/d35d8a24-0476-11e5-8bb6-2b2c53840f13.png


Reply to this email directly or view it on GitHub
#44 (comment)
.

@florent37
Copy link
Owner

https://github.com/florent37/MaterialViewPager/blob/master/materialviewpager/src/main/java/com/github/florent37/materialviewpager/MaterialViewPagerHelper.java

2015-05-27 10:20 GMT+02:00 Florent Champigny champigny.florent@gmail.com:

and add

webSettings.setRenderPriority(WebSettings.RenderPriority.HIGH);
webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); webSettings.
setJavaScriptEnabled(true); webSettings.setDomStorageEnabled(true); //transparent
background webView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);

2015-05-27 10:18 GMT+02:00 sach200 notifications@github.com:

I added transparent background color and added margin at the top.. Got
this!!!! The white rectangle doesnt scroll... Webview scrolls in half
portion only
[image: screenshot_2015-05-27-13-46-18 1]
https://cloud.githubusercontent.com/assets/12546237/7831699/d35d8a24-0476-11e5-8bb6-2b2c53840f13.png


Reply to this email directly or view it on GitHub
#44 (comment)
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants