I am using the following to create a layout that is inflated and used
in a ListView.  The text in the first TextView gets truncated but I do
not get the "..." added as I expected.  What do I not have set
correctly?  Or is this a known problem...

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">

        <TextView
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_marginLeft="20px"
                android:layout_weight="1"
                android:layout_gravity="center_vertical"
                android:text="This text will not fit in the space allowed"
                android:textSize="20.0sp"
                android:maxLines="1"
                android:ellipsize="end"
                />
        <TextView
                android:layout_width="40px"
                android:layout_height="30px"
                android:layout_gravity="center_vertical"
                android:gravity="right|center_vertical"
                android:text="5"
                android:textSize="20.0sp"
                android:layout_marginRight="5sp"
                android:paddingRight="5sp"
                />
</LinearLayout>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to