This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Base Fingerprint Dialog for Custom Fingerprint Dialogs
- Loading branch information
1 parent
f70e233
commit 3c0534c
Showing
9 changed files
with
495 additions
and
339 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:background="#FFF" | ||
android:elevation="4dp" | ||
android:gravity="center_horizontal" | ||
android:orientation="vertical" | ||
android:minWidth="300dp" | ||
android:padding="24dp"> | ||
|
||
<TextView | ||
android:id="@+id/dialogFragmentTvTitle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:fontFamily="sans-serif-medium" | ||
android:lineSpacingExtra="8sp" | ||
android:textColor="#de000000" | ||
android:textSize="20sp" | ||
android:textStyle="normal" | ||
tools:text="Fingerprint login" /> | ||
|
||
<TextView | ||
android:id="@+id/dialogFragmentTvDescription" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="12dp" | ||
android:fontFamily="sans-serif" | ||
android:lineSpacingExtra="8sp" | ||
android:textColor="#8a000000" | ||
android:textSize="16sp" | ||
android:textStyle="normal" | ||
tools:text="Use your fingerprint for faster, easier access to your account" /> | ||
|
||
<TextView | ||
android:id="@+id/dialogFragmentTvSubtitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="24dp" | ||
android:fontFamily="sans-serif" | ||
android:lineSpacingExtra="8sp" | ||
android:textColor="#8a000000" | ||
android:textSize="16sp" | ||
android:textStyle="normal" | ||
tools:text="Confirm fingerprint to continue" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="16dp" | ||
android:clipChildren="false" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:id="@+id/dialogFragmentIvFingerprint" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/background_circle" | ||
android:backgroundTint="@color/fingerprint_normal" | ||
android:contentDescription="@string/description_fingerprint_icon" | ||
android:elevation="4dp" | ||
android:padding="@dimen/padding_medium" | ||
android:src="@drawable/ic_fingerprint_white_24dp" /> | ||
|
||
<TextView | ||
android:id="@+id/dialogFragmentTvMessage" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="16dp" | ||
android:fontFamily="sans-serif" | ||
android:lineSpacingExtra="10sp" | ||
android:textColor="#8a000000" | ||
android:textSize="14sp" | ||
android:textStyle="normal" | ||
tools:text="Example message goes here" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_vertical|end" | ||
android:orientation="horizontal"> | ||
|
||
<Button | ||
android:id="@+id/dialogFragmentBtnUsePassword" | ||
style="?android:attr/buttonBarNegativeButtonStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:fontFamily="sans-serif-medium" | ||
android:letterSpacing="0.02" | ||
android:textColor="#bc1e3d" | ||
android:textSize="14sp" | ||
android:textStyle="normal" | ||
tools:text="Use Password" /> | ||
|
||
<Button | ||
android:id="@+id/dialogFragmentBtnCancel" | ||
style="?android:attr/buttonBarNegativeButtonStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:fontFamily="sans-serif-medium" | ||
android:letterSpacing="0.02" | ||
android:textColor="#bc1e3d" | ||
android:textSize="14sp" | ||
android:textStyle="normal" | ||
tools:text="Cancel" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> |
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
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
Oops, something went wrong.