ExpandableTextView icon indicating copy to clipboard operation
ExpandableTextView copied to clipboard

Not able to set android:ellipsize="end"

Open aweke-123 opened this issue 10 years ago • 6 comments

I added this line in Textview <TextView android:id="@id/expandable_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:textSize="16sp" android:ellipsize="end" android:textColor="#666666" />

On first time -> it displays ellipsis at the end of text But After Expand and again on collapse does not display ellipsis . So it works only for first time. I am not able to display Ellipsis on collapse of text.

aweke-123 avatar Nov 20 '15 11:11 aweke-123

@kambleanjali1993 I'm also facing the same issue

abhimuktheeswarar avatar Sep 08 '16 13:09 abhimuktheeswarar

Same issue here.. Any work around?

ayaz-maqbool-confiz avatar Sep 22 '16 08:09 ayaz-maqbool-confiz

I try to expTv1.setOnExpandStateChangeListener(new ExpandableTextView.OnExpandStateChangeListener() { @Override public void onExpandStateChanged(TextView textView, boolean isExpanded) { if (!isExpanded) { textView.setMaxLines(3); textView.setEllipsize(TextUtils.TruncateAt.END); } } }); it's ok

sj8521123 avatar Jun 04 '18 08:06 sj8521123

Any update on this?

soommy12 avatar Sep 20 '18 14:09 soommy12

same issue happened with me

gopalawasthi123 avatar May 16 '19 10:05 gopalawasthi123

I try to expTv1.setOnExpandStateChangeListener(new ExpandableTextView.OnExpandStateChangeListener() { @override public void onExpandStateChanged(TextView textView, boolean isExpanded) { if (!isExpanded) { textView.setMaxLines(3); textView.setEllipsize(TextUtils.TruncateAt.END); } } }); it's ok

that's useful

luyingchn avatar Aug 26 '19 03:08 luyingchn