我正在使用webview来显示一些HTML数据。我已经实现了滑动。 要使用滑动,我通过扩展webview类使用了gesturedetector和自定义Web视图。但毕竟这样,平板电脑中的字体太小了。 我也使用字体滑块(搜索栏)来改变字体大小。并将字体大小的值存储在共享的首选项中。
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.font_size, (ViewGroup) findViewById(R.id.flayout));
yourDialogSeekBar = (SeekBar)layout.findViewById(R.id.seekBar1);
prefs = getSharedPreferences("FontSize", 0);
int size = prefs.getInt("fontSize", 20);
wvBrowser.getSettings().setDefaultFontSize(size);
在自定义webview实现之前,它用于显示可读的正常字体大小。现在它不可读。我正在使用css来设置fontsize,font family等...
请帮我解决问题。