increase the textSize in android webview

Last Updated:

  1. krishnaveni

    krishnaveni Well-Known Member This Topic's Starter

    Dec 16, 2011
    Likes Received:
    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:

    [HIGH]String title = in.getStringExtra("Title");
    lblName = (TextView) findViewById(;
    ImageView positive = (ImageView) findViewById(;
    positive.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
    lblName.setTextSize(TypedValue.COMPLEX_UNIT_PX, lblName.getTextSize() + 2);
    }); [/HIGH]

    Here the textSize is increased well on can i increase the textSize on android webview...

    please give me solution for these ???

    [HIGH]WebView des = (WebView) findViewById(;
    String description = in.getStringExtra("Description");
    des.loadDataWithBaseURL(null,description, "text/html", "UTF-8", null);[/HIGH]

    How can i increase the textSize for these description ????

    I have added below code:

    [HIGH]WebSettings webSettings = des.getSettings();

    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 automatically...


    Please see 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?


Share This Page