I am using webview to show some html data. i have implemented swipe in this. To use swipes i have used gesturedetector and custom web view by extending webview class. But after all this, fonts are coming too small in tablets. I am using font slider(seekbar) also to change font size. and storing the value of font size in shared prefrence.
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);
Before custom webview implementation, it used to show normal font size which was readable.now its not readable.i am using css to set fontsize,font family etc...
- Is it because of custom web view?
- Is it because of font seekbar?
Please help me to solve the problem.