Created
November 29, 2020 07:54
-
-
Save vlkam/ac525043a8c1dec14dcfcc2a3f8b589d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Keyboard --> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:id="@+id/keyboardLayout" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:layout_marginTop="10dp" | |
android:columnCount="3" | |
android:rowCount="4" | |
> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button1" | |
style="@style/PinButton" | |
android:text="1" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintEnd_toStartOf="@id/button2" | |
app:layout_constraintBottom_toTopOf="@id/button4" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button2" | |
style="@style/PinButton" | |
android:text="2" | |
app:layout_constraintStart_toEndOf="@id/button1" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintEnd_toStartOf="@id/button3" | |
app:layout_constraintBottom_toTopOf="@id/button5" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button3" | |
style="@style/PinButton" | |
android:text="3" | |
app:layout_constraintStart_toEndOf="@id/button2" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintBottom_toTopOf="@id/button6" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button4" | |
style="@style/PinButton" | |
android:text="4" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/button1" | |
app:layout_constraintEnd_toStartOf="@id/button5" | |
app:layout_constraintBottom_toTopOf="@id/button7" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button5" | |
style="@style/PinButton" | |
android:text="5" | |
app:layout_constraintStart_toEndOf="@id/button4" | |
app:layout_constraintTop_toBottomOf="@id/button2" | |
app:layout_constraintEnd_toStartOf="@id/button6" | |
app:layout_constraintBottom_toTopOf="@id/button8" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button6" | |
style="@style/PinButton" | |
android:text="6" | |
app:layout_constraintStart_toEndOf="@id/button5" | |
app:layout_constraintTop_toBottomOf="@id/button3" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintBottom_toTopOf="@id/button9" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button7" | |
style="@style/PinButton" | |
android:text="7" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/button4" | |
app:layout_constraintEnd_toStartOf="@id/button8" | |
app:layout_constraintBottom_toTopOf="@id/buttonLeft" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button8" | |
style="@style/PinButton" | |
android:text="8" | |
app:layout_constraintStart_toEndOf="@id/button7" | |
app:layout_constraintTop_toBottomOf="@id/button5" | |
app:layout_constraintEnd_toStartOf="@id/button9" | |
app:layout_constraintBottom_toTopOf="@id/button0" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button9" | |
style="@style/PinButton" | |
android:text="9" | |
app:layout_constraintStart_toEndOf="@id/button8" | |
app:layout_constraintTop_toBottomOf="@id/button6" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintBottom_toTopOf="@id/buttonRight" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/buttonLeft" | |
style="@style/PinButton" | |
app:icon="@drawable/ic_fingerprint" | |
app:iconTint="@color/pin_button_color_states_inverse" | |
app:iconGravity="textStart" | |
app:iconPadding="0dp" | |
app:strokeWidth="0dp" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/button7" | |
app:layout_constraintEnd_toStartOf="@id/button0" | |
app:layout_constraintBottom_toBottomOf="parent" | |
tools:ignore="ContentDescription" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/button0" | |
style="@style/PinButton" | |
android:text="0" | |
app:layout_constraintStart_toEndOf="@id/buttonLeft" | |
app:layout_constraintTop_toBottomOf="@id/button8" | |
app:layout_constraintEnd_toStartOf="@id/buttonRight" | |
app:layout_constraintBottom_toBottomOf="parent" | |
tools:ignore="HardcodedText" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/buttonRight" | |
style="@style/PinButton" | |
app:icon="@drawable/ic_backspace" | |
app:iconTint="@color/pin_button_color_states_inverse" | |
app:iconGravity="textStart" | |
app:iconPadding="5dp" | |
app:strokeWidth="0dp" | |
app:layout_constraintStart_toEndOf="@id/button0" | |
app:layout_constraintTop_toBottomOf="@id/button9" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintBottom_toBottomOf="parent" | |
tools:ignore="ContentDescription" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment