Changes of com.discord v1144
This commit is contained in:
parent
4746542b20
commit
f52990c3c2
25752 changed files with 4382359 additions and 77 deletions
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView android:id="@id/buttonPanel" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fillViewport="true" android:scrollIndicators="bottom|top" style="?buttonBarStyle"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<androidx.appcompat.widget.ButtonBarLayout android:gravity="bottom" android:orientation="horizontal" android:paddingLeft="12.0dip" android:paddingTop="4.0dip" android:paddingRight="12.0dip" android:paddingBottom="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutDirection="locale">
|
||||
<Button android:id="@android:id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?buttonBarNeutralButtonStyle" />
|
||||
<android.widget.Space android:id="@id/spacer" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
|
||||
<Button android:id="@android:id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?buttonBarNegativeButtonStyle" />
|
||||
<Button android:id="@android:id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?buttonBarPositiveButtonStyle" />
|
||||
</androidx.appcompat.widget.ButtonBarLayout>
|
||||
</ScrollView>
|
10
com.discord/res/layout-v22/mtrl_alert_dialog_actions.xml
Normal file
10
com.discord/res/layout-v22/mtrl_alert_dialog_actions.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView android:id="@id/buttonPanel" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fillViewport="true" android:scrollIndicators="bottom|top" style="?buttonBarStyle"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<androidx.appcompat.widget.ButtonBarLayout android:gravity="bottom" android:orientation="horizontal" android:paddingLeft="8.0dip" android:paddingTop="2.0dip" android:paddingRight="8.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutDirection="locale" android:paddingStart="8.0dip" android:paddingEnd="8.0dip" android:paddingHorizontal="8.0dip" android:paddingVertical="2.0dip">
|
||||
<Button android:id="@android:id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?buttonBarNeutralButtonStyle" />
|
||||
<android.widget.Space android:id="@id/spacer" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
|
||||
<Button android:id="@android:id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?buttonBarNegativeButtonStyle" />
|
||||
<Button android:id="@android:id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" style="?buttonBarPositiveButtonStyle" />
|
||||
</androidx.appcompat.widget.ButtonBarLayout>
|
||||
</ScrollView>
|
11
com.discord/res/layout-v22/overlay_bubble_menu.xml
Normal file
11
com.discord/res/layout-v22/overlay_bubble_menu.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:theme="@style/AppTheme.Dark" android:gravity="left" android:clipChildren="false" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layoutDirection="ltr" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout android:gravity="center|right" android:orientation="horizontal" android:id="@id/overlay_header" android:layout_width="wrap_content" android:layout_height="wrap_content">
|
||||
<View android:id="@id/overlay_linked_anchor_view" android:layout_width="@dimen/overlay_bubble_size" android:layout_height="@dimen/overlay_bubble_size" />
|
||||
<View android:background="@color/white_alpha_30" android:layout_width="1.0dip" android:layout_height="32.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/overlay_members_rv" android:clipChildren="false" android:clipToPadding="false" android:layout_width="0.0dip" android:layout_weight="1.0" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<androidx.appcompat.widget.AppCompatTextView android:gravity="center" android:id="@id/overlay_members_overflow_tv" android:background="@drawable/drawable_uikit_primary_700_circle" android:visibility="gone" android:layout_width="@dimen/overlay_bubble_size" android:layout_height="@dimen/overlay_bubble_size" android:layout_marginEnd="@dimen/uikit_spacing_small" android:autoSizeTextType="uniform" android:autoSizeMaxTextSize="@dimen/uikit_textsize_xlarge" style="@style/UiKit.TextView.H1.Bold" />
|
||||
</LinearLayout>
|
||||
<com.discord.views.OverlayMenuView android:id="@id/overlay_menu" android:clipChildren="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Rotatable" />
|
||||
</LinearLayout>
|
26
com.discord/res/layout-v22/view_edit_payment_info.xml
Normal file
26
com.discord/res/layout-v22/view_edit_payment_info.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:background="@color/primary_700" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/billing_address" style="@style/UiKit.TextView.H2" />
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_info_name_textinputlayout" android:hint="@string/billing_address_name" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/payment_info_name_edittext" android:inputType="textEmailAddress" android:imeOptions="actionNext" android:autofillHints="emailAddress" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_info_address_1_textinputlayout" android:hint="@string/billing_address_address" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/payment_info_name_address_1_edittext" android:inputType="textPostalAddress" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_info_address_2_textinputlayout" android:hint="@string/billing_address_address2" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/payment_info_name_address_2_edittext" android:inputType="textPostalAddress" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_info_city_textinputlayout" android:hint="@string/billing_address_city" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/payment_info_city_edittext" android:inputType="text" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_info_zip_textinputlayout" android:hint="@string/billing_address_zip_code" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/payment_info_zip_edittext" android:inputType="number" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<CheckBox android:textColor="@color/primary_100" android:id="@id/payment_info_make_default_checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/payment_source_make_default" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/payment_info_delete" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/delete" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/payment_info_cancel" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Material.Button.Red.Outline" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/payment_info_cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/cancel" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toLeftOf="@id/payment_info_save" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Material.Button.Transparent" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/payment_info_save" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/save" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Material.Button.Green" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
12
com.discord/res/layout-v22/widget_audit_log_filter_sheet.xml
Normal file
12
com.discord/res/layout-v22/widget_audit_log_filter_sheet.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:background="?primary_630" style="@style/UiKit.ViewGroup.Page.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<com.google.android.material.appbar.AppBarLayout android:background="?primary_630" style="@style/AppTheme.AppBarLayout">
|
||||
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<LinearLayout android:gravity="center_vertical" android:background="?search_action_bar_bg" android:layout_height="44.0dip" android:layout_margin="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<EditText android:id="@id/audit_log_filter_input" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_marginStart="@dimen/uikit_spacing_large" android:importantForAutofill="no" style="@style/UiKit.SearchInput" />
|
||||
<ImageView android:id="@id/audit_log_filter_search" android:padding="@dimen/uikit_spacing_medium" android:clickable="false" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:src="?theme_search_menu_icon" android:contentDescription="@string/filter_options" style="@style/UiKit.ImageView.Clickable" />
|
||||
</LinearLayout>
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/audit_log_filter_recycler" android:minHeight="200.0dip" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
</LinearLayout>
|
20
com.discord/res/layout-v22/widget_auth_login.xml
Normal file
20
com.discord/res/layout-v22/widget_auth_login.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout android:background="?auth_ptrn" style="@style/UiKit.ViewGroup.Page"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<include layout="@layout/widget_auth_header" />
|
||||
<androidx.core.widget.NestedScrollView android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
|
||||
<LinearLayout android:orientation="vertical" android:id="@id/auth_login_container" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
<com.discord.views.ScreenTitleView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" app:stv_subtitle="@string/login_body" app:stv_title="@string/login_title" />
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/auth_login_email_wrap" android:layout_marginBottom="12.0dip" android:hint="@string/form_label_email" app:endIconMode="clear_text" style="@style/UiKit.Material.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/auth_login_email" android:singleLine="true" android:inputType="textEmailAddress" android:imeOptions="actionNext" android:nextFocusForward="@id/auth_login_password" android:autofillHints="emailAddress" style="@style/UiKit.Material.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/auth_login_password_wrap" android:layout_marginBottom="@dimen/uikit_spacing_small" android:hint="@string/form_label_password" style="@style/UiKit.Form.Field.EditText.Wrap.Password">
|
||||
<com.google.android.material.textfield.TextInputEditText android:id="@id/auth_login_password" android:singleLine="true" android:inputType="textPassword" android:imeOptions="actionDone" style="@style/UiKit.Material.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<TextView android:textColor="?colorTextLink" android:id="@id/auth_login_forgot_password" android:padding="@dimen/uikit_spacing_small" android:layout_marginTop="@dimen/uikit_spacing_small" android:text="@string/forgot_password" style="@style/UiKit.TextView.Subtext" />
|
||||
<TextView android:textColor="?colorTextLink" android:id="@id/auth_login_password_manager_link" android:padding="@dimen/uikit_spacing_small" android:layout_marginBottom="12.0dip" android:text="@string/password_manager_use" style="@style/UiKit.TextView.Subtext" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/auth_login" android:text="@string/login" style="@style/UiKit.AuthButton.Material" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
27
com.discord/res/layout-v22/widget_auth_register.xml
Normal file
27
com.discord/res/layout-v22/widget_auth_register.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout android:background="?auth_ptrn" style="@style/UiKit.ViewGroup.Page"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<include layout="@layout/widget_auth_header" />
|
||||
<androidx.core.widget.NestedScrollView android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
|
||||
<LinearLayout android:orientation="vertical" android:id="@id/auth_register_container" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
<com.discord.views.ScreenTitleView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" app:stv_title="@string/register" />
|
||||
<TextView android:textAppearance="@style/UiKit.TextAppearance.ListItem.Label" android:textSize="@dimen/uikit_textsize_small" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/form_placeholder_username" />
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/auth_register_username_wrap" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:hint="@string/form_label_username" app:endIconMode="clear_text" style="@style/UiKit.Material.TextInputLayout">
|
||||
<com.google.android.material.textfield.TextInputEditText android:id="@id/auth_register_username" android:singleLine="true" android:imeOptions="actionNext" android:nextFocusForward="@id/auth_register_email" style="@style/UiKit.Material.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<TextView android:textAppearance="@style/UiKit.TextAppearance.ListItem.Label" android:textSize="@dimen/uikit_textsize_small" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/form_label_account_information" />
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/auth_register_email_wrap" android:layout_marginBottom="12.0dip" android:hint="@string/form_label_email" app:endIconMode="clear_text" style="@style/UiKit.Material.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/auth_register_email" android:singleLine="true" android:inputType="textEmailAddress" android:imeOptions="actionNext" android:nextFocusForward="@id/auth_register_password" android:autofillHints="emailAddress" style="@style/UiKit.Material.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/auth_register_password_wrap" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:hint="@string/form_label_password" style="@style/UiKit.Form.Field.EditText.Wrap.Password">
|
||||
<com.google.android.material.textfield.TextInputEditText android:id="@id/auth_register_password" android:singleLine="true" android:inputType="textPassword" android:imeOptions="actionDone" style="@style/UiKit.Material.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_large" android:layout_marginStart="-4.0dip" style="@style/UiKit.ViewGroup">
|
||||
<com.google.android.material.checkbox.MaterialCheckBox android:id="@id/auth_tos_opt_in" android:layout_width="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/auth_policy_links" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/auth_policy_links" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.5" style="@style/UiKit.Checkbox" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorHeaderSecondary" android:id="@id/auth_policy_links" android:visibility="visible" android:layout_width="0.0dip" android:lineSpacingMultiplier="1.0" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/auth_tos_opt_in" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/auth_tos_opt_in" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.5" app:layout_goneMarginLeft="@dimen/uikit_spacing_medium" app:layout_goneMarginStart="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/auth_register_button" android:text="@string/register_title" style="@style/UiKit.AuthButton.Material" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.discord.widgets.chat.input.WidgetChatInputEditText android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:textColorHint="?colorTextMuted" android:layout_gravity="center_vertical" android:background="@color/transparent" android:paddingTop="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_small" android:focusableInTouchMode="true" android:scrollbars="vertical" android:layout_width="fill_parent" android:minHeight="40.0dip" android:maxLines="5" android:layout_weight="1.0" android:lineSpacingMultiplier="1.0" android:inputType="textCapSentences|textMultiLine" android:imeOptions="flagNoExtractUi" android:importantForAutofill="no" style="@style/UiKit.TextView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" />
|
46
com.discord/res/layout-v22/widget_guild_clone.xml
Normal file
46
com.discord/res/layout-v22/widget_guild_clone.xml
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout style="@style/UiKit.ViewGroup.Page"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat">
|
||||
<androidx.appcompat.widget.Toolbar app:navigationContentDescription="@string/close" app:navigationIcon="?ic_action_bar_close" style="@style/AppTheme.Toolbar.Transparent" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<androidx.core.widget.NestedScrollView style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
|
||||
<com.discord.app.AppViewFlipper android:id="@id/guild_create_flipper" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<LinearLayout android:gravity="center_horizontal" android:visibility="gone" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/guild_template_resolving_title" style="@style/UiKit.TextView.H2" />
|
||||
<ProgressBar android:id="@id/loading_button_progress" android:layout_width="30.0dip" android:layout_height="30.0dip" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:gravity="center_horizontal" android:visibility="gone" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/guild_template_invalid_title" style="@style/UiKit.TextView.H2" />
|
||||
<TextView android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/guild_template_invalid_subtitle" style="@style/UiKit.TextView.Subtext" />
|
||||
</LinearLayout>
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:textColor="?colorHeaderPrimary" android:gravity="center" android:layout_width="fill_parent" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/guild_template_modal_title" style="@style/UiKit.TextView.Bold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_xlarge" android:textColor="?colorHeaderSecondary" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/guild_template_name" android:layout_width="wrap_content" android:text="@string/sample_server_name" android:drawablePadding="@dimen/uikit_spacing_medium" android:drawableStart="@drawable/ic_template_32dp" android:layout_marginStart="@dimen/uikit_spacing_large" android:layout_marginEnd="@dimen/uikit_spacing_large" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<include android:layout_gravity="center" android:id="@id/guild_create_icon_uploader" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_xlarge" layout="@layout/layout_icon_uploader" />
|
||||
<LinearLayout android:padding="@dimen/uikit_spacing_large" style="@style/UiKit.Copy">
|
||||
<TextView android:textSize="12.0sp" android:paddingLeft="0.0dip" android:paddingRight="0.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/form_label_server_name" android:textAllCaps="true" android:fontFamily="@font/whitney_bold" style="@style/UiKit.Form.Label" />
|
||||
<EditText android:textColor="?colorTextNormal" android:id="@id/guild_create_name" android:background="@drawable/drawable_rect_rounded_white_corner_radius_8dp" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:hint="@string/form_placeholder_server_name" android:importantForAutofill="no" app:backgroundTint="?colorBackgroundTertiary" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:layout_gravity="start" android:id="@id/guild_create_guidelines" android:layout_marginLeft="0.0dip" android:layout_marginRight="0.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView.Subtext" />
|
||||
<com.discord.views.LoadingButton android:id="@id/guild_create_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_medium" app:lb_background_color="@color/uikit_btn_bg_color_selector_green" app:lb_progress_color="@color/white" app:lb_text="@string/create" app:lb_text_color="@drawable/button_text_color_primary_100" />
|
||||
<TextView android:textSize="12.0sp" android:textColor="?colorHeaderSecondary" android:id="@id/guild_create_protip" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:layout_marginStart="@dimen/uikit_spacing_large" android:layout_marginEnd="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<View android:background="?colorBackgroundModifierAccent" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_textsize_xxlarge" style="@style/UiKit.Divider" />
|
||||
<TextView android:text="@string/channels" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<TextView android:textColor="?colorTextNormal" android:text="@string/guild_template_modal_channels_descriptions" style="@style/UiKit.TextView.Subtext" />
|
||||
<LinearLayout android:background="@drawable/drawable_rect_rounded_white_corner_radius_8dp" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:paddingStart="@dimen/uikit_spacing_medium" android:paddingEnd="@dimen/uikit_spacing_medium" android:backgroundTint="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<com.discord.widgets.guilds.create.GuildTemplateChannelsView android:id="@id/guild_template_preview_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout android:id="@id/guild_template_preview_roles_layout" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginStart="@dimen/uikit_spacing_large" android:layout_marginEnd="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:text="@string/guild_template_modal_roles_header" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<TextView android:textColor="?colorTextNormal" android:text="@string/guild_template_modal_roles_description" style="@style/UiKit.TextView.Subtext" />
|
||||
<LinearLayout android:background="@drawable/drawable_rect_rounded_white_corner_radius_8dp" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:paddingStart="@dimen/uikit_spacing_medium" android:paddingEnd="@dimen/uikit_spacing_medium" android:backgroundTint="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<com.discord.widgets.roles.RolesListView android:id="@id/guild_template_preview_roles" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</com.discord.app.AppViewFlipper>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
13
com.discord/res/layout-v22/widget_notice_popup.xml
Normal file
13
com.discord/res/layout-v22/widget_notice_popup.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:background="?notice_popup_bg" android:focusable="false" android:focusableInTouchMode="false" android:maxWidth="@dimen/popup_notif_max_width" android:focusedByDefault="false" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/popup_icon" android:visibility="gone" android:layout_margin="@dimen/uikit_spacing_medium" app:roundAsCircle="true" style="@style/Avatar.Notification" />
|
||||
<LinearLayout android:layout_gravity="center_vertical" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_weight="1.0" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textColor="?primary_100" android:id="@id/popup_title" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Subtext.SingleLine" />
|
||||
<com.discord.app.AppTextView android:textColor="?colorTextNormal" android:ellipsize="end" android:id="@id/popup_body" android:maxLines="3" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
<ImageView android:layout_gravity="center|top" android:id="@id/popup_close_btn" android:src="?ic_close_24dp" android:contentDescription="@string/dismiss" style="@style/UiKit.ImageView.Clickable.Corner.TopEnd" />
|
||||
</LinearLayout>
|
||||
<ProgressBar android:id="@id/popup_countdown_progress" android:progress="0" style="@style/UiKit.ProgressBar.Line.Horizontal.Determinate" />
|
||||
</LinearLayout>
|
15
com.discord/res/layout-v22/widget_notice_popup_channel.xml
Normal file
15
com.discord/res/layout-v22/widget_notice_popup_channel.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:background="?notice_popup_bg" android:focusable="false" android:focusableInTouchMode="false" android:maxWidth="@dimen/popup_notif_max_width" android:focusedByDefault="false" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/popup_icon" android:visibility="gone" android:layout_margin="@dimen/uikit_spacing_medium" style="@style/Avatar.Notification" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_weight="1.0" style="@style/UiKit.ViewGroup">
|
||||
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:id="@id/popup_title" android:lineSpacingMultiplier="1.0" app:layout_constrainedWidth="true" app:layout_constraintEnd_toStartOf="@id/popup_subtitle" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/popup_subtitle" app:layout_constraintWidth_min="@dimen/uikit_spacing_xxlarge" style="@style/UiKit.TextView.Subtext.SingleLine" />
|
||||
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:id="@id/popup_subtitle" android:lineSpacingMultiplier="1.0" android:layout_marginStart="4.0dip" app:layout_constrainedWidth="true" app:layout_constraintBaseline_toBaselineOf="@id/popup_title" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/popup_title" style="@style/UiKit.TextView.Subtext.SingleLine" />
|
||||
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:ellipsize="end" android:id="@id/popup_body" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_xsmall" android:maxLines="3" android:lineSpacingMultiplier="1.0" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="@id/popup_title" app:layout_constraintTop_toBottomOf="@id/popup_title" style="@style/UiKit.TextView" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/popup_attachment" android:visibility="gone" android:layout_width="@dimen/uikit_spacing_xxxlarge" android:layout_height="@dimen/uikit_spacing_xxxlarge" app:actualImageScaleType="centerCrop" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/popup_title" app:layout_constraintTop_toBottomOf="@id/popup_body" app:placeholderImage="?ic_insert_drive_file" app:placeholderImageScaleType="centerInside" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<ImageView android:layout_gravity="center|top" android:id="@id/popup_close_btn" android:src="?ic_settings" android:contentDescription="@string/dismiss" style="@style/UiKit.ImageView.Clickable.Corner.TopEnd" />
|
||||
</LinearLayout>
|
||||
<ProgressBar android:id="@id/popup_countdown_progress" android:progress="0" style="@style/UiKit.ProgressBar.Line.Horizontal.Determinate" />
|
||||
</LinearLayout>
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.Page.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<androidx.appcompat.widget.Toolbar app:navigationIcon="?ic_action_bar_close" app:title="@string/payment_source_edit_title" style="@style/AppTheme.Toolbar">
|
||||
<com.discord.views.LoadingButton android:layout_gravity="end|center" android:id="@id/dialog_save" android:background="?selectableItemBackgroundBorderless" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/uikit_spacing_medium" android:layout_marginEnd="@dimen/uikit_spacing_large" app:lb_progress_color="?primary_100_alpha_60" app:lb_text="@string/save" app:lb_text_color="?primary_100" />
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
<androidx.core.widget.NestedScrollView android:layout_weight="1.0" style="@style/UiKit.ViewGroup.NestedScrollView">
|
||||
<LinearLayout android:paddingBottom="@dimen/list_bottom_padding" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textColor="@color/primary_100" android:gravity="center_vertical" android:id="@id/payment_source_edit_error" android:background="@drawable/drawable_button_red" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="fill_parent" android:drawablePadding="@dimen/uikit_spacing_medium" android:drawableStart="@drawable/ic_info_outline_white_24dp" style="@style/UiKit.TextView" />
|
||||
<com.discord.widgets.settings.billing.PaymentSourceView android:id="@id/payment_source_summary" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" />
|
||||
<com.discord.app.AppTextView android:id="@id/payment_source_edit_help" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/payment_source_edit_help_card" style="@style/UiKit.TextView.Subtext" />
|
||||
<TextView android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/billing_address" style="@style/UiKit.TextView.H2" />
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_source_edit_name" android:autofillHints="name" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:text="@string/sample_user_name" android:hint="@string/billing_address_name" android:inputType="textPersonName" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_source_edit_address1" android:autofillHints="postalAddress" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:hint="@string/billing_address_address" android:inputType="textPostalAddress" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_source_edit_address2" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:hint="@string/billing_address_address2" android:inputType="text" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_source_edit_city" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:hint="@string/billing_address_city" android:inputType="text" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_source_edit_state" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:enabled="false" android:focusableInTouchMode="false" android:hint="@string/billing_address_state" android:inputType="none" android:imeOptions="actionGo" android:drawableEnd="?ic_navigate_next" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/payment_source_edit_postal_code" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:nextFocusRight="@id/dialog_save" android:hint="@string/billing_address_zip_code" android:inputType="text" android:imeOptions="actionDone" android:nextFocusForward="@id/dialog_save" android:autofillHints="postalCode" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:enabled="false" android:id="@id/payment_source_edit_country" android:focusable="false" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:enabled="false" android:textColor="?primary_400" android:hint="@string/billing_address_country" android:inputType="none" android:drawableEnd="@drawable/ic_lock_white_a60_16dp" android:paddingEnd="@dimen/uikit_spacing_medium" style="@style/UiKit.TextInputLayout.EditText.Dense" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<CheckBox android:id="@id/payment_source_edit_default" android:layout_marginTop="@dimen/uikit_spacing_medium" android:checked="true" android:text="@string/payment_source_make_default" app:buttonTint="@color/brand_500" style="@style/UiKit.Checkbox" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/dialog_delete" android:layout_marginTop="@dimen/uikit_spacing_xlarge" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" android:text="@string/payment_source_delete" style="@style/UiKit.Material.Button.Red.Outline" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout style="@style/UiKit.ViewGroup.Page"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat">
|
||||
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<ScrollView app:layout_behavior="@string/action_bar_scrolling_view_behavior" style="@style/UiKit.ViewGroup.ScrollView">
|
||||
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<com.google.android.material.textfield.TextInputLayout android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/change_password_current_password_input" android:hint="@string/form_label_current_password" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.Password">
|
||||
<requestFocus />
|
||||
</androidx.appcompat.widget.AppCompatEditText>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/change_password_new_password_input" android:hint="@string/form_label_new_password" android:imeOptions="actionNext" android:autofillHints="none" android:importantForAutofill="no" style="@style/UiKit.Form.Field.EditText.Password" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/change_password_two_factor" android:visibility="gone" android:hint="@string/two_fa" android:imeOptions="actionDone" android:autofillHints="none" android:importantForAutofill="no" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@id/change_password_save" style="@style/Settings.FloatingActionButton.Save" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
34
com.discord/res/layout-v22/widget_settings_account_edit.xml
Normal file
34
com.discord/res/layout-v22/widget_settings_account_edit.xml
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout style="@style/UiKit.ViewGroup.Page"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat">
|
||||
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<ScrollView app:layout_behavior="@string/action_bar_scrolling_view_behavior" style="@style/UiKit.ViewGroup.ScrollView">
|
||||
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<RelativeLayout style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/edit_account_username_wrap" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toStartOf="@id/edit_account_tag_layout_container" style="@style/UiKit.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/edit_account_username" android:hint="@string/username" android:inputType="textPersonName" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText">
|
||||
<requestFocus />
|
||||
</androidx.appcompat.widget.AppCompatEditText>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<FrameLayout android:id="@id/edit_account_tag_layout_container" android:layout_width="72.0sp" android:layout_alignParentEnd="true" style="@style/UiKit.ViewGroup">
|
||||
<com.google.android.material.textfield.TextInputLayout style="@style/UiKit.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:gravity="left" android:focusable="false" android:text="\#" android:maxLength="1" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/edit_account_discriminator_wrap" style="@style/UiKit.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:gravity="center_horizontal" android:id="@id/edit_account_discriminator" android:hint="@string/user_settings_edit_account_tag" android:maxLength="4" android:inputType="number" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</FrameLayout>
|
||||
</RelativeLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/edit_account_email_wrap" android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/UiKit.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/edit_account_email" android:hint="@string/email" android:inputType="textEmailAddress" android:imeOptions="actionNext" style="@style/UiKit.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout android:id="@id/edit_account_password_wrap" android:layout_width="fill_parent" android:layout_height="wrap_content" app:passwordToggleEnabled="true" app:passwordToggleTint="?primary_400" style="@style/UiKit.TextInputLayout">
|
||||
<androidx.appcompat.widget.AppCompatEditText android:id="@id/edit_account_password" android:hint="@string/user_settings_edit_account_password_label" android:inputType="textPassword" android:imeOptions="actionDone" android:autofillHints="password" style="@style/UiKit.TextInputLayout.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@id/settings_account_save" style="@style/Settings.FloatingActionButton.Save" />
|
||||
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
Loading…
Add table
Add a link
Reference in a new issue