Android Textview Italic and wrap_contents

Posted by Faisal khan on Stack Overflow See other posts from Stack Overflow or by Faisal khan
Published on 2010-02-16T06:55:00Z Indexed on 2010/05/09 20:48 UTC
Read the original article Hit count: 486

Filed under:
|
|
|
|

I am using 3 italic textviews with different colors

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent" android:layout_height="wrap_content"
            android:orientation="horizontal" android:id="@+id/submittedBy" android:paddingTop="10dip">


            <ImageView android:id="@+id/subByImg"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:gravity="left" android:layout_gravity="bottom" android:src="@drawable/submitted_by_arrow"/>
            <TextView android:id="@+id/submitLabel"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:gravity="left" android:text="Submitted by"  android:textStyle="italic"
                android:textSize="12sp" android:textColor="@color/gray" android:paddingLeft="5dip"/>
            <TextView android:id="@+id/submitName" android:textStyle="italic"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:textSize="12sp" android:textColor="@color/maroon_dark" android:paddingLeft="10dip"/>
                <TextView android:id="@+id/submitByDate" android:textStyle="italic"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:gravity="left"
                android:textSize="12sp" android:textColor="@color/gray" android:paddingLeft="10dip"/>
            </LinearLayout>

I wonder every last character is not displaying properly specially name displayed in the middle is "Dan Buckland" and it it is missing last character looks like "Dan Bucklano"

Also tell me pls how can have textview italic and bold both..

alt text

© Stack Overflow or respective owner

Related posts about android

Related posts about textview