-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize default TouchID dialog #263
base: master
Are you sure you want to change the base?
Changes from 1 commit
d85b3a9
4c49acf
c100774
db6e547
224843e
0115d54
3b817e2
b4edd85
c7580e0
483e0c1
184eb74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,90 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/fingerprint_container" | ||
android:layout_width="match_parent" | ||
android:layout_width="250dp" | ||
android:bottomLeftRadius="30dp" | ||
android:bottomRightRadius="30dp" | ||
android:topLeftRadius="30dp" | ||
android:topRightRadius="10dp" | ||
android:layout_height="match_parent" | ||
android:paddingTop="15dp" | ||
android:paddingBottom="15dp" | ||
android:paddingLeft="30dp" | ||
android:paddingRight="30dp" | ||
Comment on lines
+5
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these should all be in dimens files There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure i will update. Thanks @rolandolopez |
||
android:orientation="vertical" | ||
android:weightSum="1"> | ||
android:background="#0c2646"> | ||
|
||
<!-- https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.btn3al2l2 appCompat works if app is srcCompat 7 activity--> | ||
<!-- app:srcCompat="@drawable/ic_fp_40px" --> | ||
|
||
<TextView | ||
android:id="@+id/fingerprint_description" | ||
android:layout_width="match_parent" | ||
<LinearLayout | ||
android:layout_width="250dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="25dp" | ||
android:layout_marginRight="25dp" | ||
android:layout_marginTop="10dp" | ||
android:gravity="left" | ||
android:text="TextView" | ||
android:textColor="#696969" | ||
android:textSize="17dp" /> | ||
android:orientation="vertical" | ||
android:layout_centerVertical="true" | ||
android:paddingTop="15dp" | ||
android:paddingBottom="15dp"> | ||
|
||
<TextView | ||
android:id="@+id/fingerprint_description" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="14sp" | ||
android:textColor="#c2cee1" | ||
android:letterSpacing="0.02" | ||
android:lineSpacingExtra="6sp" | ||
android:layout_gravity="center" | ||
android:text="Enable Fingerprint" /> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:orientation="horizontal" | ||
android:paddingBottom="25dp" | ||
android:paddingRight="20dp" | ||
android:paddingTop="25dp"> | ||
<TextView | ||
android:id="@+id/fingerprint_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="12sp" | ||
android:textColor="#33599c" | ||
android:letterSpacing="0.03" | ||
android:lineSpacingExtra="4sp" | ||
android:layout_marginTop="5dp" | ||
android:layout_gravity="center" | ||
android:text="For faster and secure login" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these should be in a dimens files and a strings file |
||
|
||
<ImageView | ||
android:id="@+id/fingerprint_icon" | ||
android:layout_width="65dp" | ||
android:layout_height="65dp" | ||
android:layout_marginLeft="25dp" | ||
android:gravity="left" | ||
android:layout_width="80dp" | ||
android:layout_height="80dp" | ||
android:layout_marginTop="20dp" | ||
android:layout_gravity="center" | ||
android:src="@drawable/ic_fp_40px" /> | ||
|
||
<TextView | ||
android:id="@+id/fingerprint_sensor_description" | ||
android:layout_width="match_parent" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="15dp" | ||
android:gravity="left|center_vertical" | ||
android:text="Touch sensor" | ||
android:layout_gravity="center" | ||
android:textColor="#696969" | ||
android:textSize="15dp" /> | ||
</LinearLayout> | ||
android:textSize="15dp" | ||
android:visibility="gone" /> | ||
|
||
<TextView | ||
android:id="@+id/fingerprint_error" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="25dp" | ||
android:layout_marginRight="25dp" | ||
android:layout_marginBottom="10dp" | ||
android:gravity="center" | ||
android:text="TextView" | ||
android:textColor="#F00" | ||
android:textSize="15dp" /> | ||
<TextView | ||
android:id="@+id/fingerprint_error" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:textColor="#db695e" | ||
android:textSize="15dp" | ||
android:lineSpacingExtra="0.4dp" /> | ||
|
||
<Button | ||
android:id="@+id/cancel_button" | ||
style="?android:attr/buttonBarButtonStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="bottom|right" | ||
android:paddingRight="15dp" | ||
android:paddingLeft="15dp" | ||
android:layout_marginEnd="10dp" | ||
android:background="#fff" | ||
android:text="Cancel" | ||
android:textColor="#696969" /> | ||
<TextView | ||
android:id="@+id/skip" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="16sp" | ||
android:layout_marginTop="25dp" | ||
android:textColor="#c2cee1" | ||
android:letterSpacing="0.03" | ||
android:lineSpacingExtra="12sp" | ||
android:layout_gravity="center" | ||
android:text="SKIP" /> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
</RelativeLayout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should coming from a strings file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure i will update. Thanks @rolandolopez