RadioRealButton icon indicating copy to clipboard operation
RadioRealButton copied to clipboard

Another bug with vectors

Open Alex293 opened this issue 8 years ago • 3 comments

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.

Alex293 avatar May 09 '17 17:05 Alex293

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

ceryle avatar May 10 '17 11:05 ceryle

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

Alex293 avatar May 10 '17 12:05 Alex293

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

ceryle avatar May 18 '17 19:05 ceryle