Added PIN Lock
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:gravity="center"
|
||||
app:layout_constraintTop_toBottomOf="@id/lock_content"
|
||||
app:layout_constraintBottom_toTopOf="@id/lock_button_layout">
|
||||
@@ -46,9 +45,10 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:srcCompat="@drawable/fingerprint"
|
||||
app:backgroundTint="@color/lock_fab"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
app:backgroundTint="@color/dark_gray"
|
||||
app:tint="@null"
|
||||
app:fabSize="mini"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -67,26 +67,29 @@
|
||||
android:id="@+id/lock_pattern"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:tint="@null"
|
||||
app:srcCompat="@drawable/lock_pattern"
|
||||
app:backgroundTint="@color/colorPrimary"
|
||||
app:backgroundTint="@color/lock_fab"
|
||||
app:fabSize="mini"/>
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/lock_pin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:tint="@null"
|
||||
app:srcCompat="@drawable/numeric"
|
||||
app:backgroundTint="@color/lock_fab"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
app:backgroundTint="@color/dark_gray"
|
||||
app:fabSize="mini"/>
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/lock_password"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:tint="@null"
|
||||
app:srcCompat="@drawable/lastpass"
|
||||
app:backgroundTint="@color/dark_gray"
|
||||
app:backgroundTint="@color/lock_fab"
|
||||
app:fabSize="mini"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
42
app/src/main/res/layout/fragment_pin_lock.xml
Normal file
42
app/src/main/res/layout/fragment_pin_lock.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Pupil, Hitomi.la viewer for Android
|
||||
~ Copyright (C) 2020 tom5079
|
||||
~
|
||||
~ This program is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<FrameLayout 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"
|
||||
android:paddingTop="100dp">
|
||||
|
||||
<com.andrognito.pinlockview.IndicatorDots
|
||||
android:id="@+id/indicator_dots"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|top"
|
||||
app:dotFilledBackground="@drawable/pin_filled"/>
|
||||
|
||||
<com.andrognito.pinlockview.PinLockView
|
||||
android:id="@+id/pin_lock_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:keypadTextColor="?android:attr/textColorPrimary"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
app:keypadDeleteButtonDrawable="@drawable/backspace_outline"
|
||||
app:keypadShowDeleteButton="true"/>
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user