Set Imageview Size Programmatically Android

[Solved] Set Imageview Size Programmatically Android | Scala - Code Explorer | yomemimo.com
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

Answers related to set imageview size programmatically android

Code Explorer Popular Question For Scala