// add this to your gradel root
dependencies {
implementation 'kr.co.prnd:readmore-textview:x.x.x'
//implementation 'kr.co.prnd:readmore-textview:1.0.0'
}
// then add this to your layout
<kr.co.prnd.readmore.ReadMoreTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/long_text"
app:readMoreColor="@color/colorPrimary"
app:readMoreMaxLine="4"
app:readMoreText="…더보기" />