2011-12-20 18:20:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2018-03-04 19:35:37 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/prompt_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-08-30 00:24:39 +00:00
|
|
|
android:background="@color/loki_darkest_gray"
|
2018-03-04 19:35:37 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2018-08-14 20:04:33 +00:00
|
|
|
<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:layout_above="@id/shim">
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
2018-03-04 19:35:37 +00:00
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_marginTop="20dp">
|
|
|
|
|
|
|
|
<ImageView
|
2019-08-30 00:24:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:src="@drawable/ic_launcher_foreground"
|
|
|
|
android:layout_gravity="center" />
|
2018-03-04 19:35:37 +00:00
|
|
|
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2014-05-14 03:41:16 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-08-14 20:04:33 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginStart="30dp"
|
|
|
|
android:layout_marginEnd="30dp"
|
2018-03-04 19:35:37 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="?login_floating_background"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:padding="20dp"
|
|
|
|
android:elevation="10dp">
|
|
|
|
|
2019-08-30 00:24:39 +00:00
|
|
|
<TextView
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/prompt_passphrase_activity__signal_is_locked"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:layout_marginBottom="32dp" />
|
2018-03-04 19:35:37 +00:00
|
|
|
|
2019-08-30 00:24:39 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/fingerprint_auth_container"
|
|
|
|
android:src="@drawable/ic_fingerprint_white_48dp"
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
android:backgroundTint="@color/signal_primary"
|
|
|
|
android:padding="20dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginBottom="32dp"
|
|
|
|
tools:visibility="visible"/>
|
2018-03-04 19:35:37 +00:00
|
|
|
|
2019-08-30 00:24:39 +00:00
|
|
|
<com.dd.CircularProgressButton
|
|
|
|
android:id="@+id/lock_screen_auth_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:background="@color/signal_primary"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
app:cpb_colorIndicator="@color/white"
|
|
|
|
app:cpb_colorProgress="@color/textsecure_primary"
|
|
|
|
app:cpb_cornerRadius="4dp"
|
|
|
|
app:cpb_selectorIdle="@drawable/progress_button_state"
|
|
|
|
app:cpb_textIdle="@string/prompt_passphrase_activity__tap_to_unlock"
|
|
|
|
android:elevation="0dp"
|
|
|
|
android:stateListAnimator="@null" />
|
2018-03-09 18:25:29 +00:00
|
|
|
|
2018-03-04 19:35:37 +00:00
|
|
|
<RelativeLayout android:id="@+id/password_auth_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="60dp"
|
|
|
|
tools:visibility="gone">
|
2014-05-14 03:41:16 +00:00
|
|
|
|
|
|
|
<EditText android:id="@+id/passphrase_edit"
|
|
|
|
android:layout_width="match_parent"
|
2014-10-30 01:28:20 +00:00
|
|
|
android:layout_height="45sp"
|
2014-05-14 03:41:16 +00:00
|
|
|
android:inputType="textPassword"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginStart="50dp"
|
|
|
|
android:layout_marginEnd="50dp"
|
2014-05-14 03:41:16 +00:00
|
|
|
android:singleLine="true"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="40dp"/>
|
2015-07-23 15:16:45 +00:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AnimatingToggle
|
|
|
|
android:id="@+id/button_toggle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignRight="@+id/passphrase_edit"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
<ImageButton android:id="@+id/passphrase_visibility"
|
|
|
|
android:src="?ic_visibility"
|
|
|
|
android:background="@drawable/touch_highlight_background"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
2015-07-23 15:16:45 +00:00
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:layout_centerVertical="true" />
|
|
|
|
|
|
|
|
<ImageButton android:id="@+id/passphrase_visibility_off"
|
|
|
|
android:src="?ic_visibility_off"
|
|
|
|
android:background="@drawable/touch_highlight_background"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
2015-07-23 15:16:45 +00:00
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:layout_centerVertical="true" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
2014-05-14 03:41:16 +00:00
|
|
|
|
|
|
|
<ImageButton android:id="@+id/ok_button"
|
2015-03-08 23:32:57 +00:00
|
|
|
android:src="?ic_arrow_forward"
|
2014-05-14 03:41:16 +00:00
|
|
|
android:contentDescription="@string/PassphrasePromptActivity_ok_button_content_description"
|
|
|
|
android:background="@null"
|
|
|
|
android:text="@string/prompt_passphrase_activity__unlock"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2014-05-14 03:41:16 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:paddingStart="5dp"
|
2014-05-14 03:41:16 +00:00
|
|
|
android:paddingTop="5dp"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:paddingEnd="10dp"
|
2014-05-14 03:41:16 +00:00
|
|
|
android:paddingBottom="5dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2018-03-04 19:35:37 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|