[ACCEPTED]-ImageView not keeping max height and width-android-xml
Accepted answer
Add the following to your XML code (Or use the appropriate function)
android:adjustViewBounds="true"
I 5 don't know why this isn't a default, because 4 it seems like it would be required for a 3 large number of items. Still, adding this 2 simple logic to your XML file will make 1 all of the difference.
I havent. So, I ll be just guessing
- Did you try defining a ScaleType option?
- Check for opposing layout attributes that can cause the layout inflater to ignore the desired width/height values.
- I suppose you tried this already but use just Layout_height /Layout_width instead of min/max attributes..
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.