Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created June 19, 2019 23:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/c3d7d450ad79cef9b61fe6a3bee73c02 to your computer and use it in GitHub Desktop.
Save BetterProgramming/c3d7d450ad79cef9b61fe6a3bee73c02 to your computer and use it in GitHub Desktop.
<android.support.constraint.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="80dp"
android:paddingBottom="8dp">
<ImageView
android:id="@+id/ivotp"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginTop="8dp"
android:background="@drawable/otp_process_circle"
app:layout_constraintBottom_toTopOf="@+id/guideline1"
app:layout_constraintEnd_toStartOf="@+id/guideline"
app:layout_constraintStart_toStartOf="@+id/guideline"
app:layout_constraintTop_toTopOf="@+id/guideline1" />
<ImageView
android:id="@+id/ivseconddiv"
android:layout_width="76dp"
android:layout_height="2dp"
android:background="@drawable/stroke_divider"
android:layerType="software"
app:layout_constraintBottom_toBottomOf="@+id/ivotp"
app:layout_constraintStart_toEndOf="@+id/ivotp"
app:layout_constraintTop_toTopOf="@+id/ivotp" />
<ImageView
android:id="@+id/ivfirstdiv"
android:layout_width="76dp"
android:layout_height="2dp"
android:layerType="software"
android:src="@drawable/stroke_divider"
app:layout_constraintBottom_toBottomOf="@+id/ivotp"
app:layout_constraintEnd_toStartOf="@+id/ivotp"
app:layout_constraintTop_toTopOf="@+id/ivotp" />
<ImageView
android:id="@+id/ivnumberfill"
android:layout_width="16dp"
android:layout_height="16dp"
app:layout_constraintBottom_toBottomOf="@+id/ivfirstdiv"
app:layout_constraintEnd_toStartOf="@+id/ivfirstdiv"
app:layout_constraintTop_toTopOf="@+id/ivfirstdiv"
app:srcCompat="@drawable/ic_otp_fill" />
<ImageView
android:id="@+id/ivprofile"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_toRightOf="@+id/ivseconddiv"
android:background="@drawable/otp_process_circle"
app:layout_constraintBottom_toBottomOf="@+id/ivseconddiv"
app:layout_constraintStart_toEndOf="@+id/ivseconddiv"
app:layout_constraintTop_toTopOf="@+id/ivseconddiv" />
<TextView
android:id="@+id/tvnumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ivnumberfill"
android:layout_marginTop="4dp"
android:text="Mobile Number"
android:textColor="?colorAccent"
android:textSize="11sp"
app:layout_constraintEnd_toEndOf="@id/ivnumberfill"
app:layout_constraintStart_toStartOf="@id/ivnumberfill"
app:layout_constraintTop_toBottomOf="@id/ivnumberfill" />
<TextView
android:id="@+id/tvotp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ivnumberfill"
android:layout_marginTop="8dp"
android:text="OTP"
android:textColor="#949595"
android:textSize="11sp"
app:layout_constraintEnd_toStartOf="@+id/ivseconddiv"
app:layout_constraintStart_toStartOf="@+id/ivotp"
app:layout_constraintTop_toBottomOf="@+id/ivotp" />
<TextView
android:id="@+id/tvprofile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ivnumberfill"
android:layout_marginTop="8dp"
android:text="Profile"
android:textColor="#949595"
android:textSize="11sp"
app:layout_constraintEnd_toEndOf="@+id/ivprofile"
app:layout_constraintStart_toStartOf="@+id/ivprofile"
app:layout_constraintTop_toBottomOf="@+id/ivprofile" />
<android.support.constraint.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5" />
<android.support.constraint.Guideline
android:id="@+id/guideline1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.5" />
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment