2020-01-06 03:26:52 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-01-07 03:51:11 +00:00
|
|
|
<RelativeLayout
|
2020-01-06 03:26:52 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-01-07 01:00:30 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-08-20 06:47:15 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-20 08:08:10 +00:00
|
|
|
tools:context="org.thoughtcrime.securesms.loki.activities.SettingsActivity"
|
2020-08-25 09:43:00 +00:00
|
|
|
tools:theme="@style/Theme.Session.DayNight.NoActionBar"
|
2020-08-20 08:08:10 +00:00
|
|
|
tools:menu="@menu/settings_general">
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<ScrollView
|
2020-01-06 03:26:52 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:scrollbars="none">
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<LinearLayout
|
2020-01-07 01:00:30 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="center_horizontal">
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-05-11 06:19:26 +00:00
|
|
|
<org.thoughtcrime.securesms.loki.views.ProfilePictureView
|
2020-01-07 03:51:11 +00:00
|
|
|
android:id="@+id/profilePictureView"
|
|
|
|
android:layout_width="@dimen/large_profile_picture_size"
|
|
|
|
android:layout_height="@dimen/large_profile_picture_size"
|
|
|
|
android:layout_marginTop="@dimen/medium_spacing" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
2020-08-14 04:52:15 +00:00
|
|
|
android:id="@+id/ctnGroupNameSection"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/large_spacing"
|
|
|
|
android:layout_marginTop="@dimen/small_spacing"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing">
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<EditText
|
|
|
|
style="@style/SessionEditText"
|
|
|
|
android:id="@+id/displayNameEditText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:visibility="invisible"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:hint="@string/activity_settings_display_name_edit_text_hint" />
|
2020-01-07 01:00:30 +00:00
|
|
|
|
|
|
|
<TextView
|
2020-08-14 09:26:56 +00:00
|
|
|
android:id="@+id/btnGroupNameDisplay"
|
2020-01-07 01:00:30 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:layout_centerInParent="true"
|
2020-01-07 01:00:30 +00:00
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/very_large_font_size"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:textStyle="bold" />
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
</RelativeLayout>
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-05-11 06:19:26 +00:00
|
|
|
<org.thoughtcrime.securesms.loki.views.LabeledSeparatorView
|
2020-01-07 03:51:11 +00:00
|
|
|
android:id="@+id/separatorView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginLeft="@dimen/large_spacing"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing"/>
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/publicKeyTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/large_spacing"
|
|
|
|
android:layout_marginTop="@dimen/large_spacing"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing"
|
|
|
|
android:textSize="@dimen/large_font_size"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:fontFamily="@font/space_mono_regular"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:text="05987d601943c267879be41830888066c6a024cbdc9a548d06813924bf3372ea78" />
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/large_spacing"
|
|
|
|
android:layout_marginTop="@dimen/large_spacing"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing"
|
|
|
|
android:orientation="horizontal">
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<Button
|
2020-08-24 06:46:12 +00:00
|
|
|
style="@style/Widget.Session.Button.Common.ProminentOutline"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:id="@+id/copyButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/medium_button_height"
|
|
|
|
android:layout_weight="1"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/copy" />
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<Button
|
2020-08-24 06:46:12 +00:00
|
|
|
style="@style/Widget.Session.Button.Common.UnimportantOutline"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:id="@+id/shareButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/medium_button_height"
|
|
|
|
android:layout_weight="1"
|
2020-07-17 02:10:25 +00:00
|
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/share" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:layout_marginTop="@dimen/large_spacing"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-08-19 01:48:16 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-08-19 01:48:16 +00:00
|
|
|
|
2020-01-07 01:00:30 +00:00
|
|
|
<TextView
|
2020-01-07 03:51:11 +00:00
|
|
|
android:id="@+id/privacyButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/setting_button_height"
|
|
|
|
android:background="@drawable/setting_button_background"
|
2020-01-07 01:00:30 +00:00
|
|
|
android:textColor="@color/text"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:gravity="center"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/activity_settings_privacy_button_title" />
|
2020-01-07 01:00:30 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/notificationsButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/setting_button_height"
|
|
|
|
android:background="@drawable/setting_button_background"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:gravity="center"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/activity_settings_notifications_button_title" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/chatsButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/setting_button_height"
|
|
|
|
android:background="@drawable/setting_button_background"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:gravity="center"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/activity_settings_chats_button_title" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<View
|
2020-01-08 04:16:34 +00:00
|
|
|
android:id="@+id/linkedDevicesButtonTopSeparator"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/linkedDevicesButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/setting_button_height"
|
|
|
|
android:background="@drawable/setting_button_background"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:gravity="center"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/activity_settings_devices_button_title" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<View
|
2020-01-08 04:16:34 +00:00
|
|
|
android:id="@+id/seedButtonTopSeparator"
|
2020-01-07 03:51:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/seedButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/setting_button_height"
|
|
|
|
android:background="@drawable/setting_button_background"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:gravity="center"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/activity_settings_recovery_phrase_button_title" />
|
2020-01-06 05:05:57 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/clearAllDataButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/setting_button_height"
|
|
|
|
android:background="@drawable/setting_button_background"
|
|
|
|
android:textColor="@color/destructive"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:gravity="center"
|
2020-05-25 06:38:36 +00:00
|
|
|
android:text="@string/activity_settings_clear_all_data_button_title" />
|
2020-01-07 03:51:11 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-03-05 03:24:10 +00:00
|
|
|
android:layout_marginBottom="@dimen/medium_spacing"
|
2020-08-24 03:34:34 +00:00
|
|
|
android:background="?android:dividerHorizontal" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-02-25 03:04:15 +00:00
|
|
|
<TextView
|
2020-03-05 03:24:10 +00:00
|
|
|
android:id="@+id/versionTextView"
|
2020-02-25 03:04:15 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-03-05 03:24:10 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-02-25 03:04:15 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/version_s"
|
2020-03-05 03:24:10 +00:00
|
|
|
android:textColor="@color/text"
|
|
|
|
android:alpha="0.6"
|
2020-02-25 03:04:15 +00:00
|
|
|
android:textSize="@dimen/very_small_font_size" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
2020-03-05 03:24:10 +00:00
|
|
|
android:layout_marginBottom="@dimen/medium_spacing" />
|
2020-02-25 03:04:15 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
</LinearLayout>
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/loader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="#A4000000"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:alpha="0">
|
|
|
|
|
|
|
|
<com.github.ybq.android.spinkit.SpinKitView
|
|
|
|
style="@style/SpinKitView.Large.ThreeBounce"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_centerInParent="true"
|
2020-09-09 22:45:20 +00:00
|
|
|
app:SpinKit_Color="@android:color/white" />
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
</RelativeLayout>
|
2020-01-06 03:26:52 +00:00
|
|
|
|
2020-01-07 03:51:11 +00:00
|
|
|
</RelativeLayout>
|