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

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -