Wrong ScaleType result, in respect to ImageView's ScaleType
See original GitHub issue- I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
- ExoMedia version:
3.0.0-preview2
- Device OS version:
6.0.1
- Devide Manufacturer:
LG
- Device Name:
Nexus 5
Reproduction Steps
Use ScaleType.CENTER_INSIDE.
and it doesn’t produce the result which ImageView$ScaleType.CENTER_INSIDE
would do.
Here I have 3 results for 3 Scale types, from one 1080 x 1920 video (made by me, for copyright issue):
Expected Result
So in sample above, I think result from CENTER_INSIDE
should be like FIT_CENTER
in case the video size is larger than the View.
Actual Result
The result from CENTER_INSIDE
was like CENTER_CROP
in case the video size is larger than the View, which is not what ImageView$ScaleType.CENTER_INSIDE
for.
Please take a look.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
ImageView's scale type unexpected behavior - Stack Overflow
Use android:scaleType="fitXY" to Scale the image using FILL that you are looking for. ... The result will be centered inside the view.
Read more >ImageView.ScaleType - Android Developers
ImageView.ScaleType. bookmark_border. Stay organized with collections Save and categorize content based on your preferences. Dismiss
Read more >A guide for Android ImageView ScaleType and ...
In this case having adjustViewBounds or not doesn't make a difference. The reason is because the image is scaled uniformly so it maintains...
Read more >Working with the ImageView | CodePath Android Cliffnotes
The ImageView handles all the loading and scaling of the image for you. Note the scaleType attribute which defines how the images will...
Read more >ImageView ScaleType in Android with Example
CENTER_INSIDE will center the image inside the ImageView container. This scale type does not match the image edge to the edge of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m hoping to have an official (non preview) build out in the next week or two. It just depends on my availability and if any more critical issues are found
OK, I’ve pushed an update with the comparison fixed