Skip to content

Instantly share code, notes, and snippets.

@Ochornma
Created April 25, 2021 18:42
Show Gist options
  • Select an option

  • Save Ochornma/8f9c1a2e023e3755f5128300f076df70 to your computer and use it in GitHub Desktop.

Select an option

Save Ochornma/8f9c1a2e023e3755f5128300f076df70 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="200dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:cardCornerRadius="8dp"
app:cardElevation="4dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/first_name_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:orientation="horizontal">
<TextView
android:layout_margin="2dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/full_name"
android:textSize="20sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/first_name"
android:layout_marginStart="10dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:text="@string/full_name"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/last_name_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/first_name_view"
android:orientation="horizontal">
<TextView
android:layout_margin="2dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/last_name"
android:textSize="20sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/last_name"
android:layout_marginStart="10dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:text="@string/last_name"
android:textSize="20sp"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/dob_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/last_name_view"
android:orientation="horizontal">
<TextView
android:layout_margin="2dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/date_of_birth"
android:textSize="20sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/dob"
android:layout_marginStart="10dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:text="@string/full_name"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/phone_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/dob_view"
android:orientation="horizontal">
<TextView
android:layout_margin="2dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/phone_number"
android:textSize="20sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/phone_number"
android:layout_marginStart="10dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:text="@string/last_name"
android:textSize="20sp"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/bvn_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/phone_view"
android:orientation="horizontal">
<TextView
android:layout_margin="2dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/bvn"
android:textSize="20sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/bvn"
android:layout_marginStart="10dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:text="@string/last_name"
android:textSize="20sp"
/>
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:layout_width="250dp"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="@string/verify_bvn"
android:id="@+id/verify"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/bvn_view"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment