JoanZapata / android-iconify

Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,...
http://joanzapata.com/android-iconify
Other
3.93k stars 527 forks source link

IconButton width is not correctly set with wrap_content #157

Closed yigitserin closed 5 years ago

yigitserin commented 8 years ago

Hi there,

I am using IconButton but I have a problem. When I set width to wrap_content, the width is bigger than it should be. Is there a way to correctly implement wrap_content?

Thanks!

JoanZapata commented 8 years ago

I'm not sure I understood correctly, can I see some code and screenshot please?

yigitserin commented 8 years ago

Hi there,

So when I wrap_content an ImageButton, it looks like 1. But I want it to be like 2. Is there any work around to do this? I would also like to avoid using constant negative margins to support multiple devices.

Here is Image

JoanZapata commented 8 years ago

I'll try to reproduce and fix it, but don't expect it to arrive very soon.

In the meantime, as a workaround, can you try using a standard TextView in your layout (with the same text as you have now) and programmatically do Iconify.addIcons() on this it?