I want to set the LayoutParams
for an ImageView
but cant seem to find out the proper way to do it.
I can only find documentation in the API for the various ViewGroups
, but not an ImageView
. Yet the ImageView
seems to have this functionality.
This code doesn't work...
myImageView.setLayoutParams(new ImageView.LayoutParams(30,30));
How do I do it?