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

fontawesome:2.1.0: Icon is still not vertically centered (like #115) #125

Closed Tumanin closed 8 years ago

Tumanin commented 8 years ago

here is the code:

 <com.joanzapata.iconify.widget.IconButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_alignParentRight="true"
        android:layout_marginTop="15dp"
        android:layout_marginBottom="15dp"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:background="@drawable/button_actionbar"
        android:text="SIGN OUT {fa-sign-out}"
        android:singleLine="true"
        android:textColor="#ffffffff"
        android:textSize="12sp"/>

screenshot_2015-09-22-21-12-42

JoanZapata commented 8 years ago

Rha... In fact, it would properly be well aligned with lowercase text, but uppercase makes it look bad. I guess I'll have to add some control over the vertical alignment of icons.

JoanZapata commented 8 years ago

Starting from version 2.1.1 (release soon), {fa-sign-out baseline} will align the icon with the baseline of the text.

14c165a2-6170-11e5-9d54-49dfbf09bf6d