I need to develop one android application. What I need here is, when I click on ImageView, size of text size automatically increased. How can I do this?
I have used below code:
String title = in.getStringExtra("Title");
lblName = (TextView) findViewById(R.id.title);
lblName.setText(title);
ImageView positive = (ImageView) findViewById(R.id.imageView3);
positive.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
lblName.setTextSize(TypedValue.COMPLEX_UNIT_PX, lblName.getTextSize() + 2);
}
});
Here the textSize is increased well on TextView..how can i increase the textSize on android webview...
please give me solution for these ???
WebView des = (WebView) findViewById(R.id.des);
String description = in.getStringExtra("Description");
des.loadDataWithBaseURL(null,description, "text/html", "UTF-8", null);
How can i increase the textSize for these description ????
I have added below code:
WebSettings webSettings = des.getSettings();
webSettings.setTextSize(WebSettings.TextSize.SMALLEST);
I have to run the app which means am getting the text is smallest fontsize.but i wish to increase the fontsize while clicking imagview...
NOTE:
Please see here. See the 2nd image at bottom -A and +A image is there. Clicking that images means automatically increase and decrease the whole app textview font size. How can I do this in android app?