I want to show read more or continue reading if text has more than 4 lines. how to do that, I tried some way it doesn't work;
if (myHolder.userTexts.getMaxLines()==4){
myHolder.showMore.setVisibility(View.VISIBLE);
} else {
myHolder.showMore.setVisibility(View.GONE);
}
And if you want to look at my layout;
<TextView
android:id="@+id/showMore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:text="@string/conti_read"
android:visibility="gone"
android:textStyle="bold"
android:gravity="center"
android:textSize="14sp" />
textView.getLineCount()
myHolder.userTexts.getMaxLines()==4
with thismyHolder.userTexts.getLineCount()>=4