ravi_user1648651
ravi_user1648651

Reputation: 33

Display large content within fixed height of webview in android

i am having a large HTML page ,displaying it in web-view android and i want whenever user will click the "fill height" it will fit the large HTML page completely within web-view height without any vertical scroll-bar i.e complete webpage will be shown in web-view height(that can vary device to device) ,Any solution??

Thanks In Advanced,please help me??

==>please give your suggestions to fixed this issue.

Upvotes: 1

Views: 1575

Answers (1)

Zyber
Zyber

Reputation: 1034

Try setting mWebView.getSettings().setLoadWithOverviewMode(true) and mWebView.getSettings().setUseWideViewPort(true) and see if that solves the problem. I'm setting this in my onCreate and when a page is loaded it completely fills the whole webview

Upvotes: 1

Related Questions