Monday 9 September 2013

Font size is bigger than set

Font size is bigger than set

i have a problem with text in android.
Let's say i make TextView with font size 100px, now I'm entering text:
TÓjy Meassuring this text on screen of device, gives me around 115px
height from highest point of font to lowest.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="100px"
android:textSize="100px"
android:text="TYyÓj" />
</LinearLayout>
I want to be sure that if i set 100px font size, it will be 100px height,
is there a way to achieve this?
First one is with 100px height, second is on wrap_content, on first one y
is cut.

No comments:

Post a Comment