question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brianwernickcommented, May 31, 2016

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

1reaction
brianwernickcommented, May 30, 2016

OK, I’ve pushed an update with the comparison fixed

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found