How-to articles, tricks, and solutions about ANDROID-WIDGET
Set ImageView width and height programmatically?
To set the width and height of an ImageView programmatically, you can use the setLayoutParams() method and pass it a LayoutParams object.