mgks / Android-SmartWebView

A simple use webview integrated w/ native features to help create most advanced hybrid applications.
https://mgks.dev/smart-webview
MIT License
551 stars 276 forks source link

Loading progress bar and zoom level #256

Open shoquebd opened 1 year ago

shoquebd commented 1 year ago

Hello

Is it possible to show page loading progress bar from bottom to top, if yes how? And also let me know is it possible to reduce page zoom level? For example same webpage in other apps and browsers showing little smaller than this app which sometime looks ugly, so if there is anyway to set zoom level in android studio, let me know where I can do that. And one more thing how to can I use one signal code with this app?

Thanks

mgks commented 1 year ago

Hi! Are you talking about setting the progress bar vertically instead of current horizontal?

And for custom zoom, you can use scale size:

asw_view.setInitialScale(1);
webSettings.setLoadWithOverviewMode(true); 
webSettings.setUseWideViewPort(true);

Ref: https://stackoverflow.com/questions/2505393/set-zoom-for-webview

Regarding signal one, I haven't used it myself. I have been using firebase with this project from early on, but I'm sure it must be easy to implement too.