Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizeDimen() and fit() do not incorporate screen density #2200

Open
paulsmithkc opened this issue Mar 31, 2021 · 0 comments
Open

resizeDimen() and fit() do not incorporate screen density #2200

paulsmithkc opened this issue Mar 31, 2021 · 0 comments
Milestone

Comments

@paulsmithkc
Copy link

resizeDimen() and fit() do not incorporate screen density.
They seem to be taking the measurements in dp and assuming 1dp = 1px.
See examples below.

1x ImageView size
image image

4x ImageView size
image image

@jrodbx jrodbx added this to the 3.0 milestone Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants