JoanZapata / android-iconify

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

IconToggleButton #74

Closed mina-skunk closed 9 years ago

JoanZapata commented 9 years ago

Thanks @gatimus !

mina-skunk commented 9 years ago

np, I'm going to use it for a play/pause button, love this library.

rodrigoAbril commented 9 years ago

Hi guys can you explain how can I use this?

mina-skunk commented 9 years ago

IconToggleButton android:textOff="{fa-play}" android:textOn="{fa-pause}"/>

matthew-reilly commented 9 years ago

This doesn't seem to work at all in V2 with the following XML. The icon is not rendered.

<com.joanzapata.iconify.widget.IconToggleButton

            android:layout_width="wrap_content"
            android:layout_height="wrap_content"

            android:textOff="{fa-play}"
            android:textColor="@color/font_white"
            android:textSize="@dimen/text_large"/>