2016-03-05 98 views
2

我使用WebView工具開發電子書閱讀器android projecd。我縮小屏幕像捏,在屏幕文字大小越來越大,但文字溢出屏幕,沒有換行。如何文字環繞捏縮放屏幕,有沒有任何超載的方法來解決問題?屏幕只有文字內容。例如:Android WebView Word包裝文本內容縮放文本內容

enter image description here

回答

-1
public void increaseFont(Webview webview) { 
    int font = wv.getSettings().getTextZoom(); 
    int newFont = font + 15; 
    wwbview.getSettings().setTextZoom(newFont); 
} 
+0

請提供一些背景。 –