我需要最大化一个imageview并通过按一个按钮最小化另一个,我完美地做到了但我不想向用户显示结果,我不希望用户看到新的大小(我想做它internaly),,,任何人都可以帮我吗?这是我的按钮代码:
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);
}
答案 0 :(得分:0)
只需删除iv3.setLayoutParams(layoutParams2);
行