1
0
Fork 1

expandable text view for long messages

This commit is contained in:
Arne 2023-09-05 11:02:16 +02:00
parent 09896af082
commit b4a6ad5641
2 changed files with 7 additions and 1 deletions

View file

@ -126,6 +126,7 @@ dependencies {
implementation 'org.jxmpp:jxmpp-stringprep-libidn:1.0.3'
implementation 'com.tbuonomo:dotsindicator:4.2'
implementation 'me.xdrop:fuzzywuzzy:1.4.0'
implementation 'com.borjabravo:readmoretextview:2.1.0'
}
ext {

View file

@ -2,7 +2,12 @@
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
<com.borjabravo.readmoretextview.ReadMoreTextView
app:trimExpandedText="@string/read_less"
app:trimCollapsedText="@string/read_more"
app:trimMode="trimModeLength"
app:trimLength="250"
app:colorClickableText="@color/accent"
android:id="@+id/message_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"