session-android/res/layout/activity_seed.xml

159 lines
6.5 KiB
XML
Raw Normal View History

2019-06-04 16:37:45 +10:00
<?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"
2019-08-19 15:34:21 +10:00
tools:context=".loki.SeedActivity">
2019-06-04 16:37:45 +10:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
2019-07-17 10:26:06 +10:00
android:orientation="vertical"
android:animateLayoutChanges="true">
2019-06-04 16:37:45 +10:00
<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
2019-07-17 10:26:06 +10:00
android:id="@+id/seedExplanationTextView1"
2019-06-04 16:37:45 +10:00
style="@style/Signal.Text.Body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-07-17 10:26:06 +10:00
android:layout_marginTop="24dp"
android:text="@string/activity_key_pair_seed_explanation_1"
2019-06-04 16:37:45 +10:00
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"
2019-06-05 16:05:08 +10:00
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"
2019-07-22 13:08:56 +10:00
android:background="@color/transparent"
2019-06-05 16:05:08 +10:00
android:textColor="@color/signal_primary"
android:text="@string/activity_key_pair_copy_button_title"
android:elevation="0dp"
android:stateListAnimator="@null" />
2019-06-04 16:37:45 +10:00
2019-07-17 10:26:06 +10:00
<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"
2019-08-07 09:44:50 +10:00
app:labeledEditText_background="@color/loki_darkest_gray"
2019-07-17 10:26:06 +10:00
app:labeledEditText_label="@string/activity_key_pair_mnemonic_edit_text_label"/>
2019-09-26 11:19:36 +10:00
<TextView
android:id="@+id/linkExplanationTextView"
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_3"
android:textAlignment="center" />
<org.thoughtcrime.securesms.components.LabeledEditText
2019-10-08 14:10:16 +11:00
android:id="@+id/publicKeyEditText"
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_public_key_edit_text_label"/>
2019-09-26 11:19:36 +10:00
2019-11-22 12:08:09 +11:00
<Button
android:id="@+id/scanQRButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/transparent"
android:elevation="0dp"
android:stateListAnimator="@null"
android:text="@string/fragment_scan_qr_code_title"
android:textColor="@color/signal_primary"
android:visibility="gone" />
2019-07-17 10:26:06 +10:00
<Button
2019-09-26 11:19:36 +10:00
android:id="@+id/toggleRestoreModeButton"
2019-07-17 10:26:06 +10:00
android:layout_width="match_parent"
android:layout_height="50dp"
2019-07-22 13:08:56 +10:00
android:background="@color/transparent"
2019-07-17 10:26:06 +10:00
android:textColor="@color/signal_primary"
android:text="@string/activity_key_pair_toggle_mode_button_title_1"
android:elevation="0dp"
android:stateListAnimator="@null" />
2019-09-26 11:19:36 +10:00
<Button
android:id="@+id/toggleRegisterModeButton"
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_2"
2019-10-08 10:38:22 +11:00
android:visibility="gone"
2019-09-26 11:19:36 +10:00
android:elevation="0dp"
android:stateListAnimator="@null" />
<Button
android:id="@+id/toggleLinkModeButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/transparent"
android:textColor="@color/signal_primary"
2019-11-22 12:08:09 +11:00
android:text="@string/activity_key_pair_toggle_mode_button_title_3"
2019-09-26 11:19:36 +10:00
android:elevation="0dp"
android:stateListAnimator="@null" />
2019-06-04 16:37:45 +10:00
<com.dd.CircularProgressButton
2019-10-08 10:38:22 +11:00
android:id="@+id/mainButton"
2019-06-04 16:37:45 +10:00
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="20dp"
2019-07-24 16:47:59 +10:00
android:layout_marginBottom="40dp"
2019-06-04 16:37:45 +10:00
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"
2019-10-08 10:38:22 +11:00
app:cpb_textIdle="@string/activity_key_pair_main_button_title_1" />
2019-06-04 16:37:45 +10:00
</LinearLayout>
</ScrollView>