[英]How to zoom web view dynamically in android using action bar, onNavigationItemSelected?
在我的應用程序中,我使用了操作欄和Web視圖。 我想將網絡視圖縮放125%,150%....因此,請幫助我找出解決方案。
您只能在android API 21中執行此操作,然后再使用此功能
mWebView.zoomBy(2.0f); //here 2.0f means 200%.
你可以這樣做:
mWebView.zoomIn();
mWebView.zoomOut();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.