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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -