mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
145 lines
6.4 KiB
XML
145 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<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"
|
|
android:background="@drawable/default_session_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:layout_above="@id/shim">
|
|
|
|
</FrameLayout>
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:layout_marginTop="20dp">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="64dp"
|
|
android:src="@drawable/ic_launcher_foreground"
|
|
android:layout_gravity="center" />
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginEnd="30dp"
|
|
android:orientation="vertical"
|
|
android:gravity="center_horizontal"
|
|
android:layout_centerInParent="true"
|
|
android:padding="20dp">
|
|
|
|
<TextView
|
|
style="@style/Signal.Text.Body"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Session is Locked"
|
|
android:textStyle="bold"
|
|
android:textSize="@dimen/large_font_size"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/text"
|
|
android:layout_marginBottom="32dp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/fingerprint_auth_container"
|
|
android:src="@drawable/ic_fingerprint_white_48dp"
|
|
android:background="@drawable/circle_tintable"
|
|
android:backgroundTint="@color/accent"
|
|
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"/>
|
|
|
|
<Button
|
|
style="@style/MediumProminentOutlineButton"
|
|
android:id="@+id/lock_screen_auth_container"
|
|
android:layout_width="196dp"
|
|
android:layout_height="@dimen/medium_button_height"
|
|
android:text="Tap to Unlock" />
|
|
|
|
<RelativeLayout android:id="@+id/password_auth_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="60dp"
|
|
tools:visibility="gone">
|
|
|
|
<EditText android:id="@+id/passphrase_edit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45sp"
|
|
android:inputType="textPassword"
|
|
android:layout_marginStart="50dp"
|
|
android:layout_marginEnd="50dp"
|
|
android:singleLine="true"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="40dp"/>
|
|
|
|
<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"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
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"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:paddingTop="3dp"
|
|
android:paddingBottom="3dp"
|
|
android:layout_centerVertical="true" />
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
|
|
|
<ImageButton android:id="@+id/ok_button"
|
|
android:src="?ic_arrow_forward"
|
|
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"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:paddingStart="5dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingEnd="10dp"
|
|
android:paddingBottom="5dp"/>
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout> |