expandable text view for long messages
This commit is contained in:
parent
09896af082
commit
b4a6ad5641
2 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue