ceryle / RadioRealButton

A custom radio button for Android API 12+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Another bug with vectors

Alex293 opened this issue · 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.

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

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

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