android - resizing imageview internally without showing the result -
android - resizing imageview internally without showing the result -
i need maximize imageview , minimize 1 pressing button , dont want show result user ,, dont want user see new size (i want internaly ) ,,, can help me please ? button code :
public void maxmin (view v){ int max = (int) (100 + (100 * 0.3)); int min = (int) (100 - (100*0.3)); relativelayout.layoutparams layoutparams = new relativelayout.layoutparams(max, max); iv1.setlayoutparams(layoutparams); relativelayout.layoutparams layoutparams2 = new relativelayout.layoutparams(min, min); iv3.setlayoutparams(layoutparams2); }
just remove iv3.setlayoutparams(layoutparams2);
line
android imageview
Comments
Post a Comment