mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +00:00
afe90200f1
Themed common/dialog button styles.
266 lines
11 KiB
XML
266 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
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="org.thoughtcrime.securesms.loki.activities.SettingsActivity"
|
|
tools:theme="@style/Session.DarkTheme.NoActionBar"
|
|
tools:menu="@menu/settings_general">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:scrollbars="none">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="center_horizontal">
|
|
|
|
<org.thoughtcrime.securesms.loki.views.ProfilePictureView
|
|
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
|
|
android:id="@+id/ctnGroupNameSection"
|
|
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">
|
|
|
|
<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"
|
|
android:hint="@string/activity_settings_display_name_edit_text_hint" />
|
|
|
|
<TextView
|
|
android:id="@+id/btnGroupNameDisplay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:textColor="@color/text"
|
|
android:textSize="@dimen/very_large_font_size"
|
|
android:textStyle="bold" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<org.thoughtcrime.securesms.loki.views.LabeledSeparatorView
|
|
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"/>
|
|
|
|
<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" />
|
|
|
|
<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">
|
|
|
|
<Button
|
|
style="@style/Widget.Session.Button.Common.ProminentOutline"
|
|
android:id="@+id/copyButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/medium_button_height"
|
|
android:layout_weight="1"
|
|
android:text="@string/copy" />
|
|
|
|
<Button
|
|
style="@style/Widget.Session.Button.Common.UnimportantOutline"
|
|
android:id="@+id/shareButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/medium_button_height"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
|
android:text="@string/share" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginTop="@dimen/large_spacing"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<TextView
|
|
android:id="@+id/themeSwitchButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/setting_button_height"
|
|
android:background="@color/accent"
|
|
android:textColor="@color/text"
|
|
android:textSize="@dimen/medium_font_size"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:text="Switch Theme" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<TextView
|
|
android:id="@+id/privacyButton"
|
|
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"
|
|
android:text="@string/activity_settings_privacy_button_title" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<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"
|
|
android:text="@string/activity_settings_notifications_button_title" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<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"
|
|
android:text="@string/activity_settings_chats_button_title" />
|
|
|
|
<View
|
|
android:id="@+id/linkedDevicesButtonTopSeparator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<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"
|
|
android:text="@string/activity_settings_devices_button_title" />
|
|
|
|
<View
|
|
android:id="@+id/seedButtonTopSeparator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<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"
|
|
android:text="@string/activity_settings_recovery_phrase_button_title" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<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"
|
|
android:text="@string/activity_settings_clear_all_data_button_title" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginBottom="@dimen/medium_spacing"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<TextView
|
|
android:id="@+id/versionTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="@string/version_s"
|
|
android:textColor="@color/text"
|
|
android:alpha="0.6"
|
|
android:textSize="@dimen/very_small_font_size" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_marginBottom="@dimen/medium_spacing" />
|
|
|
|
</LinearLayout>
|
|
|
|
</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"
|
|
app:SpinKit_Color="@color/text" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout> |