You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ExpandableTextView with the attributes gravity="center" to center the text in combination with ellipsize="end", the collapsed layout of the last line is a bit off.
Collapsed state:
Expanded state:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<at.blogc.android.views.ExpandableTextView
android:id="@+id/textViewDescription"
style="@style/BodyNormal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:ellipsize="end"
android:lineSpacingExtra="2sp"
android:maxLines="3"
android:textColor="@color/blackAlpha87"
app:animation_duration="500"
tools:text="A look at the life of the astronaut, Neil Armstrong, and the legendary space mission that led him to become the first man to ..."/>
<Button
android:id="@+id/buttonViewMore"
style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/view_more"
android:textAppearance="@style/Button"
android:textColor="?android:attr/colorPrimary"/>
</LinearLayout>
The text was updated successfully, but these errors were encountered:
When using the ExpandableTextView with the attributes gravity="center" to center the text in combination with ellipsize="end", the collapsed layout of the last line is a bit off.
Collapsed state:
Expanded state:
The text was updated successfully, but these errors were encountered: