Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Another bug with vectors #23

Open
Alex293 opened this issue May 9, 2017 · 3 comments
Open

Another bug with vectors #23

Alex293 opened this issue May 9, 2017 · 3 comments

Comments

@Alex293
Copy link

Alex293 commented May 9, 2017

Hi, great widget here !

Just found one small bug, when using vector as button images there are artefacts after the growing upon selection. It is not related to xml vector size as they are far bigger than what is displayed and without issue outside of this case.

@ceryle
Copy link
Owner

ceryle commented May 10, 2017

Hi Alex,
I will take a look at that issue.

@Alex293
Copy link
Author

Alex293 commented May 10, 2017

@ceryle For now I've disabled the growing effect so this not really a priority. Tho I'd like you thoughts on #24

@ceryle
Copy link
Owner

ceryle commented May 18, 2017

Hi,
I made a research and test about this issue and found that below api level 21, you lose definition and it causes deformation on image. The reason is android pre-renders vector drawables in pre21. You have to change vector's width and height attributes. You can find more information in here: https://developer.android.com/training/material/drawables.html#VectorDrawables
http://stackoverflow.com/questions/34936590/why-isnt-my-vector-drawable-scaling-as-expected

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants