I tried using LayoutParams but it did not work, I tried layoutParams.width = 80;
and it did not work. Does anyone know how to do this? Thanks in advance.
In my case the image got too big I needed to slow down.
My code:
ImageView iv = new ImageView(this);
iv.setImageDrawable(getResources().getDrawable(R.drawable.verde));