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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -