Hi all,
I am truncating the text in simple TextView as under
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:paddingLeft="10dip"
android:textColor="#ffffff"
android:textSize="15sp"
android:singleLine="true"
android:ellipsize="end"
android:text="Its test string dsjk sdkfjsai ds ldsfjiojrl
sdfkaslduifnfdsif sdfdfu sdfaslf dsfhlsja sdfl"
/>
This one is working fine.
Now move to the issue when i want to truncate the text in Table Layout
as under
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableRow>
<TextView
android:id="@+id/topten_rating_text"
android:textColor="#ffffff"
android:textSize="15sp"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:paddingLeft="10dip"
android:layout_width="60px"
android:text="10"
android:layout_height="wrap_content"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:src="@drawable/verticalline"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:paddingLeft="10dip"
android:textColor="#ffffff"
android:textSize="15sp"
android:singleLine="true"
android:ellipsize="end"
android:text="Its test string dsjk sdkfjsai ds
ldsfjiojrl
sdfkaslduifnfdsif sdfdfu sdfaslf dsfhlsja sdfl"/>
</TableRow>
</TableLayout>
But its not truncating the text with 3 dots. I have applied most of
the solutions which are available on internet but unable to success,
Is there any solution ?????
Thanks in advance
Regards,
Gulfam Hassan
--
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