Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CarolusX74/1fd03ea3b9f1c574cfb62a25ff339d1e to your computer and use it in GitHub Desktop.
Save CarolusX74/1fd03ea3b9f1c574cfb62a25ff339d1e to your computer and use it in GitHub Desktop.
fragment_ingreso_codigo_verificacion.xml
<?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">
<TextView
android:id="@+id/titulo_ingreso_codigo"
android:layout_width="296dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:fontFamily="sans-serif-medium"
android:text="@string/ingresa_codigo"
android:textAlignment="center"
android:textColor="#1a2633"
android:textSize="20sp"
android:textStyle="normal"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/numero_celular"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4sp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/titulo_ingreso_codigo">
<ImageView
android:id="@+id/image_celular"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="?transferencias_contacto_phone" />
<TextView
android:id="@+id/subtitulo_ingreso_celular"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium"
android:textAlignment="center"
android:textColor="#1a2733"
android:textSize="20sp"
android:textStyle="normal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toRightOf="@+id/image_celular"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/text_codigo"
android:layout_width="230sp"
android:layout_height="wrap_content"
android:layout_marginTop="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/numero_celular">
<EditText
android:id="@+id/codigo_verificacion_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:maxLength="6"
android:maxLines="1"
android:minLines="1"
android:selectAllOnFocus="true"
android:textAlignment="center"
android:textColorHint="@color/gris_717780"
android:textSize="48sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="@string/codigo_6_digitos"
android:textAlignment="center"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/codigo_verificacion_text" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="58sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text_codigo"
android:id="@+id/constraint_txt_sms">
<TextView
android:id="@+id/temporizador"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:textColor="@color/gray_text"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:visibility="gone"/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraint_fin_temporizador"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4sp"
android:clickable="true"
android:text="@string/no_te_llego"
android:textSize="14sp"
app:layout_constraintBottom_toTopOf="@+id/txt_enviar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/txt_enviar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="80sp"
android:clickable="true"
android:text="@string/enviar_nuevamente"
android:textColor="?attr/colorAccent"
android:textSize="14sp"
app:layout_constraintBottom_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4sp"
android:text="@string/si_numero_incorrecto"
android:textSize="14sp"
android:layout_marginTop="80sp"
app:layout_constraintTop_toBottomOf="@+id/constraint_txt_sms"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:id="@+id/txt_numero_incorrecto"/>
<TextView
android:id="@+id/txt_otro_celular"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="80sp"
android:clickable="true"
android:text="@string/ingresa_otro_celular"
android:textColor="?attr/colorAccent"
android:textSize="14sp"
app:layout_constraintTop_toBottomOf="@+id/txt_numero_incorrecto"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<Button
android:id="@+id/boton_continuar"
android:layout_width="0dp"
android:layout_height="56dp"
android:background="?buttonLoginBackgroundColor"
android:enabled="false"
android:foreground="?android:attr/selectableItemBackground"
android:text="@string/continuar"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment