-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
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>
Metadata
Metadata
Assignees
Labels
No labels