Changes of com.discord v984
This commit is contained in:
parent
663ccffc03
commit
ff04d44b4b
5689 changed files with 96001 additions and 94611 deletions
11
com.discord/res/layout/view_code_verification.xml
Normal file
11
com.discord/res/layout/view_code_verification.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:gravity="center" style="@style/UiKit.User.Phone.Verify.Digits"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:id="@id/verify_char_1" style="@style/UiKit.User.Verify.Char" />
|
||||
<TextView android:id="@id/verify_char_2" style="@style/UiKit.User.Verify.Char" />
|
||||
<TextView android:id="@id/verify_char_3" style="@style/UiKit.User.Verify.Char" />
|
||||
<Space android:layout_width="@dimen/uikit_spacing_large" android:layout_height="0.0dip" />
|
||||
<TextView android:id="@id/verify_char_4" style="@style/UiKit.User.Verify.Char" />
|
||||
<TextView android:id="@id/verify_char_5" style="@style/UiKit.User.Verify.Char" />
|
||||
<TextView android:id="@id/verify_char_6" style="@style/UiKit.User.Verify.Char" />
|
||||
</LinearLayout>
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:gravity="center" style="@style/UiKit.User.Phone.Verify.Digits"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<EditText android:id="@id/verify_digit_1" style="@style/UiKit.User.Phone.Verify.Digit" />
|
||||
<EditText android:id="@id/verify_digit_2" style="@style/UiKit.User.Phone.Verify.Digit" />
|
||||
<EditText android:id="@id/verify_digit_3" style="@style/UiKit.User.Phone.Verify.Digit" />
|
||||
<EditText android:id="@id/verify_digit_4" style="@style/UiKit.User.Phone.Verify.Digit.Left" />
|
||||
<EditText android:id="@id/verify_digit_5" style="@style/UiKit.User.Phone.Verify.Digit.Left" />
|
||||
<EditText android:id="@id/verify_digit_6" style="@style/UiKit.User.Phone.Verify.Digit.Left" />
|
||||
</LinearLayout>
|
|
@ -11,7 +11,7 @@
|
|||
<LinearLayout android:gravity="center" android:padding="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:text="@string/verify_by_recaptcha" style="@style/UiKit.TextView.H1" />
|
||||
<TextView android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/verify_by_recaptcha_description" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="@color/link_500" android:id="@id/auth_captcha_help" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/captcha_issues" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="?colorTextLink" android:id="@id/auth_captcha_help" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/captcha_issues" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?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:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<include layout="@layout/widget_auth_header" />
|
||||
<RelativeLayout android:background="?auth_bg_card" android:layout_margin="8.0dip" style="@style/AppTheme.AppBarScrollingViewBehavior">
|
||||
<ImageView android:contentDescription="@string/sample_empty_string" style="@style/UiKit.Auth.Spots.Bot.Left" />
|
||||
|
@ -11,7 +11,7 @@
|
|||
<TextView android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/two_fa" style="@style/UiKit.TextView.H1" />
|
||||
<TextView android:layout_marginBottom="8.0dip" android:text="@string/two_fa_enter_token_label" style="@style/UiKit.TextView.Subtext" />
|
||||
</LinearLayout>
|
||||
<com.discord.views.DigitVerificationView android:id="@id/auth_mfa_verification" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="20.0dip" />
|
||||
<com.discord.views.CodeVerificationView android:id="@id/auth_mfa_verification" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="20.0dip" />
|
||||
<TextView android:textSize="11.0sp" android:gravity="center" android:id="@id/auth_login_forgot_password" android:padding="8.0dip" android:maxWidth="320.0dip" android:text="@string/two_fa_enter_token_body" style="@style/UiKit.TextView.Subtext" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView android:textColor="@color/white" android:layout_gravity="center_horizontal" android:background="@color/status_grey_500" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/youre_viewing_older_messages" android:drawableLeft="@drawable/ic_message_white_18dp" android:drawableRight="@drawable/ic_arrow_drop_down_white_18dp" android:drawablePadding="@dimen/uikit_spacing_large" android:drawableStart="@drawable/ic_message_white_18dp" android:drawableEnd="@drawable/ic_arrow_drop_down_white_18dp" style="@style/UiKit.TextView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" />
|
|
@ -9,7 +9,7 @@
|
|||
</RelativeLayout>
|
||||
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:textSize="@dimen/uikit_textsize_small" android:id="@id/chat_input_item_emoji" android:layout_width="@dimen/avatar_size_small" android:layout_height="@dimen/avatar_size_small" android:layout_marginLeft="@dimen/uikit_spacing_large" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_text" android:id="@id/chat_input_item_name" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:singleLine="true" android:layout_toLeftOf="@id/chat_input_item_name_right" android:layout_toRightOf="@id/chat_input_item_icon_container" android:layout_centerVertical="true" android:layout_alignWithParentIfMissing="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_timestamp" android:id="@id/chat_input_item_name_right" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:maxWidth="@dimen/chat_input_autocomplete_name_max_width" android:singleLine="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorTextNormal" android:id="@id/chat_input_item_name" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:singleLine="true" android:layout_toLeftOf="@id/chat_input_item_name_right" android:layout_toRightOf="@id/chat_input_item_icon_container" android:layout_centerVertical="true" android:layout_alignWithParentIfMissing="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorTextMuted" android:id="@id/chat_input_item_name_right" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:maxWidth="@dimen/chat_input_autocomplete_name_max_width" android:singleLine="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.TextView" />
|
||||
<View android:layout_alignLeft="@id/chat_input_item_icon_container" android:layout_alignParentBottom="true" style="@style/UiKit.Divider" />
|
||||
</RelativeLayout>
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:gravity="center" android:id="@id/chat_input_verification" android:background="?primary_700_bg" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/uikit_spacing_medium" android:visibility="gone" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:textColor="?theme_chat_text" android:gravity="center" android:id="@id/chat_input_verification_text" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textColor="?colorTextNormal" android:gravity="center" android:id="@id/chat_input_verification_text" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:id="@id/chat_input_verification_action" android:text="@string/resend_verification_email" style="@style/UiKit.Button" />
|
||||
</LinearLayout>
|
|
@ -22,6 +22,7 @@
|
|||
<TextView android:id="@id/dialog_chat_actions_pin" android:text="@string/pin" android:drawableLeft="?ic_pins_a60" android:drawableStart="?ic_pins_a60" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_delete" android:text="@string/delete" android:drawableLeft="?ic_delete" android:drawableStart="?ic_delete" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_resend" android:text="@string/resend_message" android:drawableLeft="?ic_refresh" android:drawableStart="?ic_refresh" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_mark_unread" android:text="@string/mark_unread" android:drawableLeft="?ic_refresh" android:drawableStart="?ic_refresh" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:gravity="center_vertical" android:id="@id/dialog_chat_actions_profile" android:text="@string/profile" android:drawableLeft="?ic_account" android:drawableStart="?ic_account" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_copy_id" android:visibility="gone" android:text="@string/copy_id" android:drawableLeft="?ic_copy" android:drawableStart="?ic_copy" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_share" android:visibility="gone" android:text="@string/share" android:drawableLeft="?ic_share" android:drawableStart="?ic_share" style="@style/UiKit.Settings.Item.Icon" />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/chat_list_item_embed_content" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingTop="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_small" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constrainedWidth="true" app:layout_constraintEnd_toStartOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintStart_toEndOf="@id/chat_list_item_embed_divider" app:layout_constraintTop_toTopOf="parent">
|
||||
<TextView android:textSize="9.5sp" android:textColor="@color/grey_1" android:id="@id/chat_list_item_embed_provider" android:background="?selectableItemBackground" android:visibility="gone" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_author_icon" android:visibility="gone" android:layout_width="@dimen/embed_tiny_icon_size" android:layout_height="@dimen/embed_tiny_icon_size" app:layout_constraintBottom_toBottomOf="@id/chat_list_item_embed_author_text" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/chat_list_item_embed_author_text" app:placeholderImage="?colorBackgroundPrimary" app:roundedCornerRadius="2.0dip" />
|
||||
<TextView android:textColor="?theme_chat_name" android:id="@id/chat_list_item_embed_author_text" android:visibility="gone" android:layout_marginLeft="@dimen/embed_item_margin" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toEndOf="@id/chat_list_item_embed_author_icon" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_provider" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" app:layout_goneMarginTop="0.0dip" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textColor="?colorTextInteractiveActive" android:id="@id/chat_list_item_embed_author_text" android:visibility="gone" android:layout_marginLeft="@dimen/embed_item_margin" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toEndOf="@id/chat_list_item_embed_author_icon" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_provider" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" app:layout_goneMarginTop="0.0dip" style="@style/UiKit.TextView.Semibold" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textColor="?primary_100" android:id="@id/chat_list_item_embed_title" android:background="?selectableItemBackground" android:lineSpacingMultiplier="1.0" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_author_text" style="@style/UiKit.TextView.Semibold" />
|
||||
<androidx.constraintlayout.widget.Barrier android:id="@id/chat_list_item_embed_barrier_header" android:layout_width="0.0dip" android:layout_height="0.0dip" app:barrierDirection="bottom" app:constraint_referenced_ids="chat_list_item_embed_title, chat_list_item_embed_author_text, chat_list_item_embed_provider" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:id="@id/chat_list_item_embed_description" android:background="?selectableItemBackground" android:layout_width="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_small" android:text="@string/sample_channel_message" android:lineSpacingMultiplier="1.0" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_barrier_header" style="@style/UiKit.TextView" />
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
<RelativeLayout android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:id="@id/chat_list_empty_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="?theme_chat_empty_pins" android:layout_above="@id/chat_list_empty_pins_text" android:layout_centerHorizontal="true" />
|
||||
<TextView android:textSize="15.0sp" android:textColor="?theme_chat_text" android:gravity="center" android:id="@id/chat_list_empty_pins_text" android:layout_marginTop="10.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="15.0sp" android:textColor="?colorTextNormal" android:gravity="center" android:id="@id/chat_list_empty_pins_text" android:layout_marginTop="10.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
|
@ -4,9 +4,9 @@
|
|||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_adapter_item_text_avatar" android:layout_marginTop="4.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:importantForAccessibility="no" style="@style/Avatar.Standard" />
|
||||
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/chat_list_adapter_item_text_avatar">
|
||||
<RelativeLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="18.0dip" android:layout_marginBottom="4.0dip">
|
||||
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_name" android:id="@id/chat_list_adapter_item_text_name" android:maxWidth="150.0dip" android:text="@string/sample_user_name" android:singleLine="true" android:layout_alignParentBottom="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?colorTextInteractiveActive" android:id="@id/chat_list_adapter_item_text_name" android:maxWidth="150.0dip" android:text="@string/sample_user_name" android:singleLine="true" android:layout_alignParentBottom="true" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="13.75sp" android:textColor="@color/status_red_500" android:textColorLink="@color/link_500" android:id="@id/chat_list_adapter_item_text" android:layout_width="fill_parent" style="@style/UiKit.TextView" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="13.75sp" android:textColor="@color/status_red_500" android:textColorLink="?colorTextLink" android:id="@id/chat_list_adapter_item_text" android:layout_width="fill_parent" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="11.0sp" android:textColor="@color/status_red_500_alpha_60" android:layout_width="fill_parent" android:layout_marginTop="6.0dip" android:text="@string/send_message_failure" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<androidx.legacy.widget.Space android:layout_width="fill_parent" android:layout_height="@dimen/chat_cell_horizontal_spacing_padding" />
|
||||
<View android:id="@id/chat_list_item_mention_footer_divider" android:background="?colorBackgroundModifierAccent" android:layout_width="fill_parent" android:layout_height="0.25dip" android:layout_marginTop="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_horizontal_spacing_padding" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_timestamp" android:gravity="center" android:id="@id/chat_list_item_message_header_channel" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="16.0dip" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="16.0dip" android:layout_width="fill_parent" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin" android:text="@string/no_recent_mentions" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?colorTextMuted" android:gravity="center" android:id="@id/chat_list_item_message_header_channel" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="16.0dip" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="16.0dip" android:layout_width="fill_parent" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin" android:text="@string/no_recent_mentions" style="@style/UiKit.TextView.Semibold" />
|
||||
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="198.0dip" android:layout_marginTop="32.0dip" android:layout_marginBottom="28.0dip">
|
||||
<View android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
|
||||
<ImageView android:id="@id/chat_list_item_mention_footer_hand" android:layout_width="wrap_content" android:layout_height="198.0dip" android:src="?theme_chat_empty_mentions_hand" />
|
||||
|
@ -11,6 +11,6 @@
|
|||
</LinearLayout>
|
||||
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:background="@drawable/drawable_button_theme_grey_channels" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_padding" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_padding" android:layout_marginBottom="@dimen/chat_cell_horizontal_spacing_padding">
|
||||
<TextView android:textSize="13.75sp" android:textColor="@color/status_green_500" android:gravity="center" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="15.0dip" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:layout_width="fill_parent" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin" android:text="@string/pinned_messages_pro_tip" android:singleLine="true" android:textAllCaps="true" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:gravity="center" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="15.0dip" android:layout_width="320.0dip" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin" android:text="@string/recent_mentions_pro_tip" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?colorTextNormal" android:gravity="center" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="15.0dip" android:layout_width="320.0dip" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin" android:text="@string/recent_mentions_pro_tip" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
|
@ -3,6 +3,6 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<androidx.legacy.widget.Space android:id="@id/chat_list_item_message_header_spacer" android:layout_width="fill_parent" android:layout_height="@dimen/chat_cell_horizontal_spacing_padding" />
|
||||
<View android:id="@id/chat_list_item_message_header_divider" android:background="?colorBackgroundModifierAccent" android:layout_width="fill_parent" android:layout_height="0.25dip" android:layout_marginTop="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_horizontal_spacing_padding" android:layout_below="@id/chat_list_item_message_header_spacer" android:layout_alignWithParentIfMissing="true" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_name" android:id="@id/chat_list_item_message_header_channel" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_total" android:paddingRight="0.0dip" android:singleLine="true" android:layout_below="@id/chat_list_item_message_header_divider" android:layout_alignWithParentIfMissing="true" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_item_message_header_guild" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_total" android:singleLine="true" android:layout_toRightOf="@id/chat_list_item_message_header_channel" android:layout_alignTop="@id/chat_list_item_message_header_channel" android:layout_alignBottom="@id/chat_list_item_message_header_channel" android:layout_alignWithParentIfMissing="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="13.75sp" android:textColor="?colorTextInteractiveActive" android:id="@id/chat_list_item_message_header_channel" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_total" android:paddingRight="0.0dip" android:singleLine="true" android:layout_below="@id/chat_list_item_message_header_divider" android:layout_alignWithParentIfMissing="true" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorTextMuted" android:gravity="center_vertical" android:id="@id/chat_list_item_message_header_guild" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_total" android:singleLine="true" android:layout_toRightOf="@id/chat_list_item_message_header_channel" android:layout_alignTop="@id/chat_list_item_message_header_channel" android:layout_alignBottom="@id/chat_list_item_message_header_channel" android:layout_alignWithParentIfMissing="true" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
|
@ -2,5 +2,5 @@
|
|||
<RelativeLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="?theme_search_broken_results" android:layout_above="@id/chat_list_search_error_text" android:layout_centerHorizontal="true" />
|
||||
<TextView android:textSize="15.0sp" android:textColor="?theme_chat_text" android:gravity="center" android:id="@id/chat_list_search_error_text" android:layout_marginTop="10.0dip" android:text="@string/search_error" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="15.0sp" android:textColor="?colorTextNormal" android:gravity="center" android:id="@id/chat_list_search_error_text" android:layout_marginTop="10.0dip" android:text="@string/search_error" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
|
@ -2,5 +2,5 @@
|
|||
<RelativeLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.airbnb.lottie.LottieAnimationView android:id="@id/chat_list_search_indexing_animation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@id/chat_list_search_indexing_text" android:layout_centerHorizontal="true" app:lottie_autoPlay="true" app:lottie_fileName="?theme_search_indexing_animation" app:lottie_loop="true" />
|
||||
<TextView android:textSize="15.0sp" android:textColor="?theme_chat_text" android:gravity="center" android:id="@id/chat_list_search_indexing_text" android:layout_marginTop="10.0dip" android:text="@string/search_guild_still_indexing" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="15.0sp" android:textColor="?colorTextNormal" android:gravity="center" android:id="@id/chat_list_search_indexing_text" android:layout_marginTop="10.0dip" android:text="@string/search_guild_still_indexing" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
|
@ -2,5 +2,5 @@
|
|||
<RelativeLayout android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:id="@id/chat_list_adapter_item_start_image" android:layout_width="98.0dip" android:layout_height="76.0dip" android:layout_marginTop="10.0dip" android:src="@drawable/asset_mascot_grey_left" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_centerInParent="true" android:contentDescription="@string/sample_empty_string" />
|
||||
<com.discord.app.AppTextView android:textColor="?theme_chat_text" android:id="@id/chat_list_adapter_item_start" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:text="@string/beginning_channel" android:layout_below="@id/chat_list_adapter_item_start_image" style="@style/UiKit.TextView" />
|
||||
<com.discord.app.AppTextView android:textColor="?colorTextNormal" android:id="@id/chat_list_adapter_item_start" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:text="@string/beginning_channel" android:layout_below="@id/chat_list_adapter_item_start_image" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:id="@id/chat_list_adapter_item_system_icon" android:layout_width="@dimen/avatar_size_small" android:layout_height="@dimen/avatar_size_small" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_centerVertical="true" android:importantForAccessibility="no" />
|
||||
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/chat_list_adapter_item_system_icon" android:layout_centerVertical="true">
|
||||
<TextView android:textColor="?theme_chat_text" android:id="@id/chat_list_adapter_item_system_text" android:layout_width="fill_parent" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Large" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_system_timestamp" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:text="@string/sample_time_pm" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="?colorTextNormal" android:id="@id/chat_list_adapter_item_system_text" android:layout_width="fill_parent" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Large" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorTextMuted" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_system_timestamp" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:text="@string/sample_time_pm" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
|
@ -4,9 +4,9 @@
|
|||
<androidx.constraintlayout.widget.Guideline android:id="@id/uikit_chat_guideline" style="@style/UiKit.Chat.Guideline" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_adapter_item_text_avatar" android:layout_marginLeft="8.0dip" android:importantForAccessibility="no" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="@id/uikit_chat_guideline" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/uikit_chat_guideline" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/chat_list_adapter_item_text_header" style="@style/Avatar.Chat" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/chat_list_adapter_item_text_header" android:layout_width="wrap_content" android:layout_height="0.0dip" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="@id/chat_list_adapter_item_text_avatar">
|
||||
<TextView android:textColor="?theme_chat_name" android:id="@id/chat_list_adapter_item_text_name" android:lineSpacingMultiplier="1.0" app:layout_constrainedWidth="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintEnd_toStartOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<TextView android:textColor="?colorTextInteractiveActive" android:id="@id/chat_list_adapter_item_text_name" android:lineSpacingMultiplier="1.0" app:layout_constrainedWidth="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintEnd_toStartOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<TextView android:textSize="9.5sp" android:textColor="@color/white" android:id="@id/chat_list_adapter_item_text_bot" android:background="@drawable/drawable_button_purple_neutral" android:paddingLeft="3.0dip" android:paddingTop="0.5dip" android:paddingRight="3.0dip" android:paddingBottom="0.5dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:text="BOT" android:singleLine="true" app:layout_constraintBottom_toBottomOf="@id/chat_list_adapter_item_text_name" app:layout_constraintEnd_toStartOf="@id/chat_list_adapter_item_text_timestamp" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_text_name" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text_timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:singleLine="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_name" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_text_bot" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorTextMuted" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text_timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:singleLine="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_name" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_text_bot" style="@style/UiKit.TextView" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:id="@id/chat_list_adapter_item_text" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_xsmall" android:layout_marginRight="@dimen/uikit_spacing_small" android:layout_marginBottom="2.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toBottomOf="@id/chat_list_adapter_item_text_header" style="@style/UiKit.Chat.Text" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
10
com.discord/res/layout/widget_chat_overlay.xml
Normal file
10
com.discord/res/layout/widget_chat_overlay.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.google.android.material.chip.Chip android:textAppearance="@style/UiKit.TextView" android:textColor="@color/white" android:gravity="start" android:layout_gravity="center_horizontal" android:id="@id/chat_overlay_old_messages_chip" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/uikit_spacing_medium" android:text="@string/youre_viewing_older_messages" app:chipBackgroundColor="@color/status_grey_500" app:chipIcon="@drawable/ic_message_white_18dp" app:chipIconEnabled="true" app:chipIconSize="18.0dip" app:chipIconVisible="true" app:closeIcon="@drawable/ic_arrow_drop_down_white_18dp" app:closeIconEnabled="true" app:closeIconEndPadding="@dimen/uikit_spacing_medium" app:closeIconSize="18.0dip" app:closeIconTint="@color/white" app:closeIconVisible="true" app:iconStartPadding="@dimen/uikit_spacing_medium" app:layout_constraintBottom_toTopOf="@id/chat_overlay_typing" style="@style/Widget.MaterialComponents.Chip.Action" />
|
||||
<RelativeLayout android:gravity="center_vertical" android:id="@id/chat_overlay_typing" android:background="?chat_typing_bg" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/uikit_typing_indicator_height" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" app:layout_constraintBottom_toBottomOf="parent" style="@style/UiKit.ViewGroup">
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:ellipsize="end" android:gravity="center_vertical" android:id="@id/chat_typing_users_typing" android:layout_width="wrap_content" android:layout_height="@dimen/uikit_typing_indicator_height" android:maxLines="1" android:layout_alignParentLeft="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:ellipsize="end" android:gravity="end|center" android:id="@id/chat_typing_users_slowmode" android:layout_width="wrap_content" android:layout_height="@dimen/uikit_typing_indicator_height" android:maxLines="1" android:layout_toLeftOf="@id/chat_typing_users_slowmode_icon" android:layout_toRightOf="@id/chat_typing_users_typing" style="@style/UiKit.TextView" />
|
||||
<ImageView android:id="@id/chat_typing_users_slowmode_icon" android:layout_marginLeft="@dimen/uikit_spacing_small" android:src="?ic_slowmode_timer" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/channel_slowmode_desc" style="@style/UiKit.ImageView" />
|
||||
</RelativeLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:gravity="center_vertical" android:background="?chat_typing_bg" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="@dimen/uikit_typing_indicator_height" style="@style/UiKit.ViewGroup"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:ellipsize="end" android:gravity="center_vertical" android:id="@id/chat_typing_users_typing" android:layout_width="wrap_content" android:layout_height="@dimen/uikit_typing_indicator_height" android:maxLines="1" android:layout_alignParentLeft="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:ellipsize="end" android:gravity="end|center" android:id="@id/chat_typing_users_slowmode" android:layout_width="wrap_content" android:layout_height="@dimen/uikit_typing_indicator_height" android:maxLines="1" android:layout_toLeftOf="@id/chat_typing_users_slowmode_icon" android:layout_toRightOf="@id/chat_typing_users_typing" style="@style/UiKit.TextView" />
|
||||
<ImageView android:id="@id/chat_typing_users_slowmode_icon" android:layout_marginLeft="@dimen/uikit_spacing_small" android:src="?ic_slowmode_timer" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/channel_slowmode_desc" style="@style/UiKit.ImageView" />
|
||||
</RelativeLayout>
|
|
@ -1,6 +1,6 @@
|
|||
<?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: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>
|
||||
|
@ -10,7 +10,7 @@
|
|||
<TextView android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/xbox_authorization_title" style="@style/UiKit.TextView.H1" />
|
||||
<TextView android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/connection_enter_code" style="@style/UiKit.TextView.Subtext" />
|
||||
</LinearLayout>
|
||||
<com.discord.views.DigitVerificationView android:id="@id/connections_xbox_digits" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup" />
|
||||
<com.discord.views.CodeVerificationView android:id="@id/connections_xbox_code" android:layout_marginTop="@dimen/uikit_spacing_large" app:cvv_character_input_type="alphanumeric" style="@style/UiKit.ViewGroup" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:gravity="center" android:id="@id/connections_xbox_login" android:background="?primary_500" android:padding="@dimen/uikit_spacing_medium" android:layout_margin="@dimen/uikit_spacing_medium" android:foreground="?selectableItemBackground" android:layout_alignParentBottom="true" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<TextView android:textColor="?primary_300" android:layout_marginRight="@dimen/uikit_spacing_medium" android:text="@string/connection_login_with" style="@style/UiKit.TextView" />
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/friends_list_item_presence" android:layout_width="12.0dip" android:layout_height="12.0dip" android:layout_centerInParent="true" app:placeholderImage="@color/status_grey_500" app:roundAsCircle="true" />
|
||||
</RelativeLayout>
|
||||
<LinearLayout android:id="@id/friends_list_item_text" android:layout_toLeftOf="@id/friends_list_item_mutual_wrap" android:layout_toRightOf="@id/friends_list_item_avatar" android:layout_centerVertical="true" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textColor="?theme_chat_text" android:id="@id/friends_list_item_name" android:text="@string/sample_user_name" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:textColor="?theme_chat_timestamp" android:id="@id/friends_list_item_game" android:paddingTop="2.0dip" android:text="@string/sample_user_presence" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="?colorTextNormal" android:id="@id/friends_list_item_name" android:text="@string/sample_user_name" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:textColor="?colorTextMuted" android:id="@id/friends_list_item_game" android:paddingTop="2.0dip" android:text="@string/sample_user_presence" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:id="@id/friends_list_item_mutual_wrap" android:layout_width="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<FrameLayout android:id="@id/friends_list_item_mutual_1" android:layout_marginLeft="4.0dip" android:layout_marginRight="4.0dip" style="@style/Avatar.Standard">
|
||||
|
|
|
@ -3,23 +3,23 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip">
|
||||
<ImageView android:id="@id/friends_list_item_empty_no_friends" android:layout_width="320.0dip" android:layout_height="0.0dip" android:src="?theme_friends_no_friends" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_weight="1.0" android:contentDescription="@string/sample_empty_string" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?theme_chat_text" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip" android:text="@string/friends_empty_state_all" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip" android:text="@string/friends_empty_state_all" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:gravity="center" android:id="@id/friends_list_item_empty_invite" android:background="@drawable/drawable_button_purple" android:paddingLeft="16.0dip" android:paddingRight="16.0dip" android:layout_height="36.0dip" android:text="@string/tip_instant_invite_title3" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip">
|
||||
<ImageView android:id="@id/friends_list_item_empty_no_online" android:layout_width="320.0dip" android:layout_height="0.0dip" android:src="?theme_friends_no_online" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_weight="1.0" android:contentDescription="@string/sample_empty_string" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?theme_chat_text" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_online" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_online" style="@style/UiKit.TextView.Semibold" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip">
|
||||
<ImageView android:id="@id/friends_list_item_empty_no_request" android:layout_width="320.0dip" android:layout_height="0.0dip" android:src="?theme_friends_no_request" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_weight="1.0" android:contentDescription="@string/sample_empty_string" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?theme_chat_text" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_pending" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_pending" style="@style/UiKit.TextView.Semibold" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip">
|
||||
<ImageView android:id="@id/friends_list_item_empty_no_suggestions" android:layout_width="320.0dip" android:layout_height="0.0dip" android:src="?theme_friends_no_suggestions" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_weight="1.0" android:contentDescription="@string/sample_empty_string" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?theme_chat_text" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_all" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:gravity="center" android:layout_width="320.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_all" style="@style/UiKit.TextView.Semibold" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip">
|
||||
<ImageView android:id="@id/friends_list_item_empty_no_blocked" android:layout_width="320.0dip" android:layout_height="0.0dip" android:src="?theme_friends_no_block" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_weight="1.0" android:contentDescription="@string/sample_empty_string" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?theme_chat_text" android:gravity="center" android:layout_width="340.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_blocked" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:gravity="center" android:layout_width="340.0dip" android:layout_marginTop="16.0dip" android:text="@string/friends_empty_state_blocked" style="@style/UiKit.TextView.Semibold" />
|
||||
</LinearLayout>
|
||||
</com.discord.app.AppViewFlipper>
|
|
@ -4,8 +4,7 @@
|
|||
<fragment android:name="com.discord.widgets.chat.list.WidgetChatList" android:id="@id/widget_chat_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/widget_chat_input" android:layout_below="@id/action_bar_toolbar_layout" />
|
||||
<fragment android:name="com.discord.widgets.friends.WidgetFriendsList" android:id="@id/widget_friends_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/action_bar_toolbar_layout" />
|
||||
<fragment android:name="com.discord.widgets.status.WidgetStatus" android:id="@id/widget_status" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/action_bar_toolbar_layout" />
|
||||
<fragment android:name="com.discord.widgets.chat.typing.WidgetChatTypingUsers" android:id="@id/widget_chat_typing" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_above="@id/widget_chat_detached" />
|
||||
<fragment android:name="com.discord.widgets.chat.detached.WidgetChatDetached" android:id="@id/widget_chat_detached" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/widget_chat_input" android:layout_centerHorizontal="true" />
|
||||
<fragment android:name="com.discord.widgets.chat.overlay.WidgetChatOverlay" android:id="@id/widget_chat_overlay_actions" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/widget_chat_input" android:layout_centerHorizontal="true" />
|
||||
<fragment android:name="com.discord.widgets.chat.input.WidgetChatInput" android:id="@id/widget_chat_input" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/widget_chat_voice" android:layout_alignWithParentIfMissing="true" />
|
||||
<fragment android:name="com.discord.widgets.voice.call.WidgetVoiceCallInline" android:id="@id/widget_chat_voice" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" />
|
||||
<ViewStub android:id="@id/main_panel_center_nsfw" android:layout="@layout/widget_main_panel_center_nsfw" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/action_bar_toolbar_layout" />
|
||||
|
|
|
@ -2,19 +2,20 @@
|
|||
<LinearLayout 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:id="@id/rich_presence_header" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UserProfile.PresenceSection.Body">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="32.0dip" android:layout_height="32.0dip" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?colorBackgroundSecondary" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="64.0dip" android:layout_height="64.0dip" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?colorBackgroundSecondary" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<androidx.legacy.widget.Space android:id="@id/image_bottom_guideline" android:layout_width="@dimen/uikit_image_border_size" android:layout_height="@dimen/uikit_image_border_size" android:layout_marginLeft="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/rich_presence_image_large" />
|
||||
<FrameLayout android:background="?primary_600_circle" android:padding="@dimen/uikit_image_border_size" android:layout_width="18.0dip" android:layout_height="18.0dip" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="fill_parent" app:placeholderImage="@drawable/ic_spotify_green_16dp" app:roundAsCircle="true" style="@style/Avatar.Small" />
|
||||
<FrameLayout android:id="@id/rich_presence_image_small_wrap" android:background="?colorPrimaryCircle" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="visible" app:placeholderImage="@drawable/ic_spotify_green_16dp" app:roundAsCircle="true" style="@style/Avatar.Medium" />
|
||||
</FrameLayout>
|
||||
<LinearLayout android:id="@id/rich_presence_container_data" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintHorizontal_weight="1.0" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@id/rich_presence_image_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:ellipsize="marquee" android:id="@id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UserProfile.PresenceSection.Body.HeaderText" />
|
||||
<TextView android:id="@id/rich_presence_details" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
||||
<TextView android:id="@id/rich_presence_time" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
||||
</LinearLayout>
|
||||
<com.miguelgaeta.super_bar.SuperBar android:id="@id/rich_presence_superbar" android:focusable="false" android:clickable="false" android:layout_height="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data" app:sb_barBackgroundColor="?primary_500" app:sb_barColor="?primary_000" app:sb_barControlColor="@color/transparent" app:sb_barControlRadius="4.0dip" app:sb_barControlShadowRadius="0.0dip" app:sb_barHeight="4.0dip" app:sb_barTouchEnabled="false" app:sb_barValueMax="100.0" style="@style/UiKit.SuperBar" />
|
||||
<androidx.constraintlayout.widget.Barrier android:id="@id/barrier" android:layout_width="fill_parent" android:layout_height="wrap_content" app:barrierDirection="bottom" app:constraint_referenced_ids="rich_presence_container_data,rich_presence_image_large" />
|
||||
<com.miguelgaeta.super_bar.SuperBar android:id="@id/rich_presence_superbar" android:focusable="false" android:clickable="false" android:layout_height="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/barrier" app:sb_barBackgroundColor="?primary_500" app:sb_barColor="?primary_000" app:sb_barControlColor="@color/transparent" app:sb_barControlRadius="4.0dip" app:sb_barControlShadowRadius="0.0dip" app:sb_barHeight="4.0dip" app:sb_barTouchEnabled="false" app:sb_barValueMax="100.0" style="@style/UiKit.SuperBar" />
|
||||
<FrameLayout android:id="@id/rich_presence_music_progress_container" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/rich_presence_superbar" style="@style/UiKit.ViewGroup">
|
||||
<TextView android:layout_gravity="start" android:id="@id/rich_presence_music_elapsed" style="@style/UiKit.TextView" />
|
||||
<TextView android:layout_gravity="end" android:id="@id/rich_presence_music_duration" style="@style/UiKit.TextView" />
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<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:textColor="?primary_100" android:id="@id/popup_title" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Subtext.Semibold.SingleLine" />
|
||||
<com.discord.app.AppTextView android:textColor="?theme_chat_text" android:ellipsize="end" android:id="@id/popup_body" android:maxLines="3" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView" />
|
||||
<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>
|
||||
|
|
|
@ -2,15 +2,19 @@
|
|||
<LinearLayout 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:id="@id/rich_presence_header" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UserProfile.PresenceSection.Body">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="32.0dip" android:layout_height="32.0dip" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?ic_game_icon_placeholder" app:placeholderImageScaleType="fitCenter" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:layout_constraintBottom_toBottomOf="@id/rich_presence_image_large" app:layout_constraintEnd_toEndOf="@id/rich_presence_image_large" app:roundAsCircle="true" style="@style/Avatar.Small" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="64.0dip" android:layout_height="64.0dip" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?ic_game_icon_placeholder" app:placeholderImageScaleType="fitCenter" />
|
||||
<Space android:id="@id/image_bottom_guideline" android:layout_width="@dimen/uikit_image_border_size" android:layout_height="@dimen/uikit_image_border_size" android:layout_marginLeft="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/rich_presence_image_large" />
|
||||
<FrameLayout android:id="@id/rich_presence_image_small_wrap" android:background="?colorPrimaryCircle" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Medium" />
|
||||
</FrameLayout>
|
||||
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" app:layout_constrainedHeight="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@id/rich_presence_image_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:ellipsize="marquee" android:id="@id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UserProfile.PresenceSection.Body.HeaderText" />
|
||||
<TextView android:id="@id/rich_presence_time" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
||||
</LinearLayout>
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_play_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/user_activity_play_on_platform" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data" style="@style/UserProfile.PresenceSection.MaterialButton" />
|
||||
<androidx.constraintlayout.widget.Barrier android:id="@id/barrier" android:layout_width="fill_parent" android:layout_height="wrap_content" app:barrierDirection="bottom" app:constraint_referenced_ids="rich_presence_container_data,rich_presence_image_large" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_play_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/user_activity_play_on_platform" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/barrier" style="@style/UserProfile.PresenceSection.MaterialButton" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
|
@ -3,5 +3,5 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:textSize="24.0sp" android:textColor="?primary_100" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/two_fa_login_label" style="@style/UiKit.TextView" />
|
||||
<TextView android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" android:text="@string/two_fa_login_body" style="@style/UiKit.TextView" />
|
||||
<com.discord.views.DigitVerificationView android:id="@id/user_settings_mfa_enable_input_digits" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup" />
|
||||
<com.discord.views.CodeVerificationView android:id="@id/user_settings_mfa_enable_input_code" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup" />
|
||||
</LinearLayout>
|
|
@ -2,7 +2,7 @@
|
|||
<LinearLayout 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:id="@id/rich_presence_header" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.ConstraintLayout">
|
||||
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/start_guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_begin="@dimen/uikit_spacing_large" />
|
||||
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/embed_guideline_right" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_end="@dimen/uikit_spacing_large" />
|
||||
|
@ -11,10 +11,10 @@
|
|||
<TextView android:textColor="?stream_preview_placeholder_color" android:id="@id/stream_preview_placeholder_caption" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stream_preview_loading" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/stream_preview_image" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintDimensionRatio="H,16:9" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="parent" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginTop="@dimen/uikit_spacing_large" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="@id/start_guideline" app:layout_constraintStart_toStartOf="@id/start_guideline" app:layout_constraintTop_toBottomOf="@id/stream_preview_image" app:placeholderImage="?colorBackgroundSecondary" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_large" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="@id/start_guideline" app:layout_constraintStart_toStartOf="@id/start_guideline" app:layout_constraintTop_toBottomOf="@id/stream_preview_image" app:placeholderImage="?colorBackgroundSecondary" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<androidx.legacy.widget.Space android:id="@id/image_bottom_guideline" android:layout_width="@dimen/uikit_image_border_size" android:layout_height="@dimen/uikit_image_border_size" android:layout_marginLeft="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/rich_presence_image_large" />
|
||||
<FrameLayout android:background="?primary_600" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Small" />
|
||||
<FrameLayout android:id="@id/rich_presence_image_small_wrap" android:background="?primary_600" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Medium" />
|
||||
</FrameLayout>
|
||||
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:minHeight="80.0dip" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@id/rich_presence_image_large" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:ellipsize="marquee" android:id="@id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UserProfile.PresenceSection.Body.HeaderText" />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<LinearLayout style="@style/UiKit.Copy">
|
||||
<TextView android:text="@string/verify_by_recaptcha" style="@style/UiKit.TextView.H1" />
|
||||
<TextView android:gravity="center" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/verify_by_recaptcha_description" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="@color/link_500" android:id="@id/user_captcha_help" android:padding="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/captcha_issues" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="?colorTextLink" android:id="@id/user_captcha_help" android:padding="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/captcha_issues" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
<com.discord.views.DigitVerificationView android:id="@id/user_phone_digit_verification" android:paddingBottom="40.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" />
|
||||
<com.discord.views.CodeVerificationView android:id="@id/user_phone_digit_verification" android:paddingBottom="40.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" />
|
||||
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat.Transparent">
|
||||
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar.Transparent" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<LinearLayout 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:id="@id/rich_presence_header" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UserProfile.PresenceSection.Body">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="32.0dip" android:layout_height="32.0dip" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?ic_game_icon_placeholder" app:placeholderImageScaleType="fitCenter" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="64.0dip" android:layout_height="64.0dip" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?ic_game_icon_placeholder" app:placeholderImageScaleType="fitCenter" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
||||
<androidx.legacy.widget.Space android:id="@id/image_bottom_guideline" android:layout_width="@dimen/uikit_image_border_size" android:layout_height="@dimen/uikit_image_border_size" android:layout_marginLeft="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/rich_presence_image_large" />
|
||||
<FrameLayout android:background="?primary_600" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Small" />
|
||||
<FrameLayout android:id="@id/rich_presence_image_small_wrap" android:background="?colorPrimaryCircle" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Medium" />
|
||||
</FrameLayout>
|
||||
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@id/rich_presence_image_large" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:ellipsize="marquee" android:id="@id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UserProfile.PresenceSection.Body.HeaderText" />
|
||||
|
|
|
@ -20,19 +20,19 @@
|
|||
<com.google.android.material.button.MaterialButton android:id="@id/user_sheet_friend_request_accept_button" android:text="@string/friend_request_accept" android:layout_weight="1.0" style="@style/UiKit.Button.Compact.Green" />
|
||||
</LinearLayout>
|
||||
<TextView android:id="@id/user_sheet_profile_voice_settings_header" android:text="@string/voice_settings" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
|
||||
<com.discord.widgets.user.usersheet.UserProfileVoiceSettingsView android:id="@id/user_sheet_profile_voice_settings_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
<FrameLayout android:id="@id/rich_presence_container" android:visibility="gone" style="@style/UiKit.ViewGroup" />
|
||||
<LinearLayout android:id="@id/user_sheet_guild_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:id="@id/user_sheet_guild_header" android:contentDescription="@string/user_profile_guild_name_content_description" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_sheet_roles_recycler" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:overScrollMode="never" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?primary_600" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?primary_600" style="@style/UserProfile.Section.Card">
|
||||
<com.discord.widgets.user.profile.UserProfileAdminView android:id="@id/user_sheet_admin_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
<TextView android:id="@id/user_sheet_connections_header" android:visibility="gone" android:text="@string/connections" style="@style/UserProfile.Section.Header" />
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Body.Card">
|
||||
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
|
||||
<com.discord.widgets.user.profile.UserProfileConnectionsView android:id="@id/user_sheet_connections_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
<TextView android:id="@id/user_sheet_note_header" android:text="@string/note" style="@style/UserProfile.Section.Header" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue