Open aweke-123 opened 8 years ago
@kambleanjali1993 I'm also facing the same issue
Same issue here.. Any work around?
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
Any update on this?
same issue happened with me
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
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.