Skip to content

Instantly share code, notes, and snippets.

@pdog18
Created June 1, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdog18/a3acd99fd3dbd43ba61d2281ef8b2094 to your computer and use it in GitHub Desktop.
Save pdog18/a3acd99fd3dbd43ba61d2281ef8b2094 to your computer and use it in GitHub Desktop.
double textview
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:background="@color/colorPrimary"
android:ellipsize="end"
android:maxLines="1"
android:text="ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toStartOf="@id/textView2"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:background="@color/colorAccent"
android:text="zzzzzzz"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/textView1"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment