On the fragment there are several ImageView and Button. When you click on Button, you need to resize the ImageView (that is, the component itself). All markup in RelativeLayout.
I am trying to achieve results in the following way:
int width = myImageView.getWidth() + 100; int height = myImageView.getHeight() + 100; myImageView.setLayoutParams(new RelativeLayout.LayoutParams(width, height));
When you click on the Button, the size of the ImageView successfully increases. With repeated clicks, there are no results, i.e. ImageView sizes no longer change. Which way to look?