Step 1
<com.example.zzh.foldtext.SpannableFoldTextView
android:id="@+id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
android:textColor="#000"
app:showMaxLine="4"
app:showTipAfterExpand="true"
app:tipClickable="true"
app:tipColor="@color/colorPrimary"
app:tipGravity="0" />
Step 2
setText()
Step 1
<com.example.zzh.foldtext.FoldTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
android:textColor="#000"
app:showMaxLine="4"
app:showTipAfterExpand="true"
app:tipClickable="true"
app:tipColor="@color/colorPrimary"
app:tipGravity="0" />
Step 2
setText()
MIT