Manabu-GT / ExpandableTextView

Android's TextView that can expand/collapse like the Google Play's app description
Apache License 2.0
4.08k stars 791 forks source link

Not able to set android:ellipsize="end" #28

Open aweke-123 opened 8 years ago

aweke-123 commented 8 years ago

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.

abhimuktheeswarar commented 8 years ago

@kambleanjali1993 I'm also facing the same issue

ayaz-maqbool-confiz commented 8 years ago

Same issue here.. Any work around?

sj8521123 commented 6 years ago

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

soommy12 commented 6 years ago

Any update on this?

gopalawasthi123 commented 5 years ago

same issue happened with me

luyingchn commented 5 years ago

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