84 lines
3.4 KiB
XML
84 lines
3.4 KiB
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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="24dp"
|
|
tools:context=".Pin2Fragment">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/card_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:strokeWidth="1dp"
|
|
app:strokeColor="@color/stroke_color"
|
|
app:cardElevation="0dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<TextView
|
|
android:id="@+id/pin2_fragment_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:text="@string/pin2_fragment" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/pin2_edit_text"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:hint="@string/enter_pin2"
|
|
app:counterEnabled="true"
|
|
app:counterMaxLength="12"
|
|
app:endIconMode="password_toggle"
|
|
app:errorEnabled="true"
|
|
app:helperText="@string/example_pin2"
|
|
app:helperTextEnabled="true"
|
|
app:startIconDrawable="@drawable/can_logo">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="numberPassword"
|
|
android:textSize="14sp" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<Button
|
|
android:id="@+id/next_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/continue_button"
|
|
android:textSize="15sp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/cancel_button"
|
|
app:layout_constraintTop_toBottomOf="@id/card_view" />
|
|
|
|
<Button
|
|
android:id="@+id/cancel_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/cancel_text"
|
|
android:textSize="15sp"
|
|
app:layout_constraintEnd_toStartOf="@id/next_button"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/card_view" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |