Skip to content

Instantly share code, notes, and snippets.

@danielmalone
Created January 25, 2020 00:55
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 danielmalone/27a0457373d0726fdcb29a679284351d to your computer and use it in GitHub Desktop.
Save danielmalone/27a0457373d0726fdcb29a679284351d to your computer and use it in GitHub Desktop.
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/invoiceTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:padding="8dp"
android:textColor="#000"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Invoice for Brad Smither" />
<TextView
android:id="@+id/invoiceClient"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:textColor="#000"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/invoiceTitle"
tools:text="Daniel Malone" />
<TextView
android:id="@+id/invoiceDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:padding="8dp"
android:textColor="#CE0000"
android:textSize="12sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/invoiceTitle"
tools:text="2020-01-05" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="8dp"
android:background="#DDD"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/invoiceClient" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment