mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-27 02:07:42 +00:00
89ae5ed4ed
Remove unnecessary and redundant nested layouts, fix the alignment of the unlock button to the right edge of the screen, use cleaner margins and replace the deprecated fill_parent sizes with match_parent.
43 lines
1.8 KiB
XML
43 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
android:background="@drawable/background_pattern_repeat">
|
|
|
|
<LinearLayout android:id="@+id/prompt_layout"
|
|
android:padding="16dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginBottom="24dp"
|
|
android:src="@drawable/padlock_prompt"/>
|
|
|
|
<TextView style="@style/Registration.Label"
|
|
android:layout_width="match_parent"
|
|
android:textAllCaps="true"
|
|
android:text="@string/prompt_passphrase_activity__textsecure_passphrase" />
|
|
|
|
<EditText android:id="@+id/passphrase_edit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPassword"
|
|
android:layout_marginBottom="8dp"
|
|
android:singleLine="true"/>
|
|
|
|
<Button android:id="@+id/ok_button"
|
|
android:text="@string/prompt_passphrase_activity__unlock"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |