Hi.
I want to show collapsed text on load of application but i get the following problem.

I used the 1.0.4 version imported with
implementation("io.github.glailton.expandabletextview:expandabletextview:1.0.4")
I load the object with
val reviewContent = rowView.findViewById<ExpandableTextView>(R.id.listview_review_record_content)
And used in this way:
...
reviewContent.text = review.content
reviewContent
.setReadMoreText(getString(parent.context, R.string.view_more))
.setReadLessText(getString(parent.context, R.string.view_less))
.setCollapsedLines(3)
.setIsExpanded(false)
.setIsUnderlined(true)
.setExpandType(EXPAND_TYPE_LAYOUT)
.setEllipsizedTextColor(ContextCompat.getColor(parent.context, R.color.darkPurple))
...
XML code:
...
<io.github.glailton.expandabletextview.ExpandableTextView
android:id="@+id/listview_review_record_content"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/no_information"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/listview_review_record_title">
</io.github.glailton.expandabletextview.ExpandableTextView>
...
Useful info:
The layout is in a ConstraintLayout the language of programming is kotlin
This bug occours in API level 34 and API level 33.
I welcome this opportunity to send you my best regards.
Daniele Romanella
Hi.

I want to show collapsed text on load of application but i get the following problem.
I used the 1.0.4 version imported with
implementation("io.github.glailton.expandabletextview:expandabletextview:1.0.4")I load the object with
val reviewContent = rowView.findViewById<ExpandableTextView>(R.id.listview_review_record_content)And used in this way:
XML code:
... <io.github.glailton.expandabletextview.ExpandableTextView android:id="@+id/listview_review_record_content" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/no_information" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/listview_review_record_title"> </io.github.glailton.expandabletextview.ExpandableTextView> ...Useful info:
The layout is in a
ConstraintLayoutthe language of programming iskotlinThis bug occours in API level 34 and API level 33.
I welcome this opportunity to send you my best regards.
Daniele Romanella