Fingerprint unlock UX improvements

This commit is contained in:
art1fa
2018-03-09 18:03:43 +01:00
committed by Greyson Parrelli
parent 20c896413b
commit 8441ac4091
10 changed files with 52 additions and 28 deletions

View File

@@ -6,32 +6,21 @@
android:id="@+id/prompt_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/login_top_background"
android:orientation="vertical">
<View android:id="@+id/shim"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_centerVertical="true"
android:visibility="invisible"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?login_top_background"
android:layout_above="@id/shim">
</FrameLayout>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:theme="?attr/actionBarStyle"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_marginTop="20dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="36dp"
android:layout_height="36dp"
android:src="@drawable/icon_transparent"
android:layout_centerVertical="true"
android:layout_gravity="center"/>
</android.support.v7.widget.Toolbar>
@@ -39,7 +28,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="280dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:orientation="vertical"
@@ -50,11 +39,20 @@
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="40dp"
android:layout_marginBottom="2dp"
android:text="@string/prompt_passphrase_activity__signal_is_locked"
android:textColor="?android:textColorPrimary"
android:gravity="center_horizontal"
android:textSize="25sp"/>
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:text="@string/PassphrasePromptActivity_confirm_fingerprint"
android:textColor="?android:textColorSecondary"
android:gravity="center_horizontal"
android:textSize="16sp"/>
<ImageView android:id="@+id/fingerprint_auth_container"
android:src="@drawable/ic_fingerprint_white_48dp"
android:background="@drawable/circle_tintable"
@@ -63,9 +61,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="60dp"
android:layout_marginBottom="25dp"
tools:visibility="visible"/>
<TextView android:id="@+id/fingerprint_status_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/PassphrasePromptActivity_touch_sensor"
android:textColor="@color/gray27"
android:gravity="center_horizontal"
android:textSize="16sp"/>
<TextView android:id="@+id/lock_screen_auth_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"