steelkiwi / IncrementProductView

Interesting concept of products incrementation

Home Page:http://steelkiwi.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set icon from xml

coolmyll opened this issue · comments

When i set a middle icon from xml it looks really small. Is there any preferred size or option to change it?

view.setParentMiddleIcon(ContextCompat.getDrawable(getActivity(),R.drawable.ic_raspberry));

@coolmyll Hi! There isn't preferred size, try to change drawable location. For example to drawable-hdpi it depends on screen size

This doesnt work for xml drawables. I changed each one width and height code to 100 x 100.

@coolmyll i will check it as soon as possible, thanks for your response

@coolmyll Hi, I fixed issue with icon size calculation, now it will calculate depends on view size. So you can try it now and send some feedback.

Works perfect now with xml drawables!!!