JoanZapata / android-iconify

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

Cut word Kitkat #53

Closed qcfer35 closed 9 years ago

qcfer35 commented 10 years ago

Cut out some words when I use IconTextView, if I use TextView works perfectly

screenshot_2014-09-15-13-47-08

screenshot_2014-09-15-13-49-06

XML <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_marginRight="5dp" android:orientation="horizontal" android:padding="10sp" > <android.widget.IconTextView android:id="@+id/iconTextView1" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout>

tested on Android 4.4.4 Moto G

sergiopantoja commented 10 years ago

+1 Same here. Android 4.4.4.

sergiopantoja commented 10 years ago

Found a temporary workaround. Setting android:gravity="fill" and android:paddingBottom="2dp" fixed it for me. You may need to add more padding if your text is a larger size.

Source: http://stackoverflow.com/a/20374365/1787412

fadils commented 10 years ago

Or you can set the layout_height to two dp larger than the font size.

If font-size: 18sp, then layout_height: 20dp

mikepenz commented 10 years ago

@fadils this is a good point. but i think he would love to still use wrap_content.

JoanZapata commented 9 years ago

Fixed by v2.