Can I set the width and height of ImageView in the code?
android android-emulator android-widget
image_view.getLayoutParams().height=20;
You can set it like this.
The important thing is to set the height or width of and ask the layout to apply the image view change as image_view.requestLayout()
.
© 2024 OneMinuteCode. All rights reserved.