Question : set ImageView size programmatically android
Answered by : awful-coder
imageView.getLayoutParams().height = 20;
// If you're setting the height after the layout has already been 'laid out',
// make sure you also call:
imageView.requestLayout();
Source : https://stackoverflow.com/questions/3144940/set-imageview-width-and-height-programmatically | Last Update : Sat, 30 Apr 22