mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-21 15:37:32 +00:00
107 lines
4.3 KiB
XML
107 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".loki.KeyPairActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:orientation="vertical"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<TextView
|
|
android:id="@+id/titleTextView"
|
|
style="@style/Signal.Text.Headline.Registration"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="40dp"
|
|
android:text="@string/activity_key_pair_title"
|
|
android:textAlignment="center" />
|
|
|
|
<TextView
|
|
android:id="@+id/seedExplanationTextView1"
|
|
style="@style/Signal.Text.Body"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/activity_key_pair_seed_explanation_1"
|
|
android:textStyle="bold"
|
|
android:textAlignment="center" />
|
|
|
|
<TextView
|
|
android:id="@+id/mnemonicTextView"
|
|
style="@style/Signal.Text.Body"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:alpha="0.8"
|
|
android:textStyle="italic"
|
|
android:textAlignment="center"
|
|
tools:text="quick brown fox jump lazy dog" />
|
|
|
|
<Button
|
|
android:id="@+id/copyButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="20dp"
|
|
android:background="@color/transparent"
|
|
android:textColor="@color/signal_primary"
|
|
android:text="@string/activity_key_pair_copy_button_title"
|
|
android:elevation="0dp"
|
|
android:stateListAnimator="@null" />
|
|
|
|
<TextView
|
|
android:id="@+id/seedExplanationTextView2"
|
|
style="@style/Signal.Text.Body"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:visibility="gone"
|
|
android:text="@string/activity_key_pair_seed_explanation_2"
|
|
android:textAlignment="center" />
|
|
|
|
<org.thoughtcrime.securesms.components.LabeledEditText
|
|
android:id="@+id/mnemonicEditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:visibility="gone"
|
|
app:labeledEditText_background="@color/loki_darkest_gray"
|
|
app:labeledEditText_label="@string/activity_key_pair_mnemonic_edit_text_label"/>
|
|
|
|
<Button
|
|
android:id="@+id/toggleModeButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:background="@color/transparent"
|
|
android:textColor="@color/signal_primary"
|
|
android:text="@string/activity_key_pair_toggle_mode_button_title_1"
|
|
android:elevation="0dp"
|
|
android:stateListAnimator="@null" />
|
|
|
|
<com.dd.CircularProgressButton
|
|
android:id="@+id/registerOrRestoreButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginBottom="40dp"
|
|
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/activity_key_pair_register_or_restore_button_title_1" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|