I want to increase size of text in edit text when I press plus button and decrese when I press minus button
<p>Here I put my code of 2 buttons.</p>

<p>I have to face one problem.  Button works OK in MDPI view but I have a problem in the QVGA emulator.</p>

<p>In QVGA when I press the <code>plus</code> button then its size decreases y and when I press the <code>minus</code> button, no change occurs</p>

<pre><code>if(v==im7)
{
    float size=tx3.getTextSize();
    float size1=tx2.getTextSize();

    Toast.makeText(this,"plus"+String.valueOf(size),2000).show();

    size=size+1;
    size1=size1+1;

    tx3.setTextSize(size);
    tx2.setTextSize(size1);                 
}

if(v==im8)
{
    /*float size=tx3.getTextSize();
    float size1=tx2.getTextSize();
    */
    Toast.makeText(this,"minus"+String.valueOf(size),2000).show();

    size=size-1;
    size1=size1-1;

    tx3.setTextSize(size);
    tx2.setTextSize(size1);         
}
</code></pre>
