Changes of com.discord v974
This commit is contained in:
parent
5e4cf25b8b
commit
20802f65df
6573 changed files with 138392 additions and 110470 deletions
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:background="?primary_630" android:minWidth="328.0dip" style="@style/UiKit.Dialog.Container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:id="@id/connected_account_actions_dialog_header" android:background="?primary_700" style="@style/UiKit.ListItem.Icon" />
|
||||
<TextView android:id="@id/connected_account_actions_dialog_open_in_browser" android:visibility="gone" android:text="@string/open_in_browser" style="@style/UiKit.ListItem" />
|
||||
<TextView android:id="@id/connected_account_actions_dialog_copy_username" android:text="@string/copy_username" style="@style/UiKit.ListItem" />
|
||||
</LinearLayout>
|
2
com.discord/res/layout/icon_list_item_text_view.xml
Normal file
2
com.discord/res/layout/icon_list_item_text_view.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView style="@style/UiKit.ListItem.Icon" />
|
3
com.discord/res/layout/stream_feedback_spinner_item.xml
Normal file
3
com.discord/res/layout/stream_feedback_spinner_item.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView android:textColor="@color/primary_100" android:id="@id/stream_feedback_spinner_text" android:background="@color/primary_660" android:padding="@dimen/uikit_spacing_medium" android:singleLine="true" style="@style/UiKit.TextView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" />
|
7
com.discord/res/layout/user_profile_connections_view.xml
Normal file
7
com.discord/res/layout/user_profile_connections_view.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:id="@id/user_profile_connections_mutual_guilds_item" android:text="@string/mutual_guilds" android:drawableRight="?ic_navigate_next" android:drawableEnd="?ic_navigate_next" style="@style/UiKit.ListItem.Icon" />
|
||||
<TextView android:id="@id/user_profile_connections_mutual_friends_item" android:text="@string/mutual_friends" android:drawableRight="?ic_navigate_next" android:drawableEnd="?ic_navigate_next" style="@style/UiKit.ListItem.Icon" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_profile_connections_view_recycler" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
</LinearLayout>
|
10
com.discord/res/layout/view_chat_embed_game_invite.xml
Normal file
10
com.discord/res/layout/view_chat_embed_game_invite.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge style="@style/UiKit.ViewGroup.ConstraintLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_game_invite_cover_image" android:background="@drawable/drawable_game_invite_cover_image_background" android:layout_width="128.0dip" android:layout_height="0.0dip" android:scaleType="centerCrop" android:alpha="0.4" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_min="128.0dip" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:overlayImage="@drawable/drawable_game_invite_gradient_overlay" app:roundBottomLeft="false" app:roundTopLeft="false" app:roundedCornerRadius="4.0dip" app:viewAspectRatio="1.0" />
|
||||
<TextView android:id="@id/item_game_invite_header" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<TextView android:textSize="18.0sp" android:textColor="?primary_100" android:id="@id/item_game_invite_status" android:layout_marginTop="@dimen/uikit_spacing_medium" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_header" app:layout_constraintStart_toStartOf="@id/item_game_invite_header" app:layout_constraintTop_toBottomOf="@id/item_game_invite_header" style="@style/UiKit.TextView" />
|
||||
<com.google.android.material.button.MaterialButton android:textAppearance="@style/UiKit.TextView" android:id="@id/item_game_invite_action_btn" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/game_action_button_play" app:backgroundTint="@color/status_green_500" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/item_game_invite_status" app:layout_constraintVertical_bias="1.0" style="@style/Widget.MaterialComponents.Button" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_game_invite_recycler" android:layout_width="0.0dip" android:layout_height="@dimen/avatar_size_standard" app:layout_constraintBottom_toTopOf="@id/item_game_invite_action_btn" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_status" app:layout_constraintRight_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintStart_toStartOf="@id/item_game_invite_status" app:layout_constraintTop_toBottomOf="@id/item_game_invite_status" app:layout_constraintVertical_bias="1.0" app:layout_goneMarginBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<TextView android:gravity="end" android:id="@id/item_game_invite_application_name" android:layout_width="0.0dip" android:layout_height="wrap_content" android:maxLines="2" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="@id/item_game_invite_cover_image" style="@style/UiKit.Chat.Embed.Footer" />
|
||||
</merge>
|
13
com.discord/res/layout/view_golive_stream.xml
Normal file
13
com.discord/res/layout/view_golive_stream.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge android:layout_width="fill_parent" android:layout_height="fill_parent"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout android:gravity="center_horizontal" android:layout_gravity="center_vertical" android:id="@id/golive_stream_ended" android:background="@color/primary_700" android:paddingTop="@dimen/uikit_spacing_xxlarge" android:paddingBottom="@dimen/uikit_spacing_xxlarge" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_large" android:src="@drawable/drawable_stream_ended" android:importantForAccessibility="no" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:textColor="@color/white" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stream_ended" android:fontFamily="@font/whitney_semibold" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
<com.discord.views.video.AppVideoStreamRenderer android:id="@id/golive_stream_video_renderer" android:background="@color/black" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:gravity="center" android:id="@id/golive_stream_paused" android:background="@color/black_alpha_70" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/stream_capture_paused" android:fontFamily="@font/whitney_semibold" style="@style/UiKit.TextView" />
|
||||
<RelativeLayout android:id="@id/golive_stream_loading_indicator" android:background="@color/black" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
<ProgressBar android:layout_width="50.0dip" android:layout_height="50.0dip" android:indeterminate="true" android:layout_centerInParent="true" />
|
||||
</RelativeLayout>
|
||||
</merge>
|
|
@ -2,5 +2,5 @@
|
|||
<merge android:layout_width="wrap_content" android:layout_height="wrap_content"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<TextView android:textColor="@color/primary_100" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/loading_button_text" android:textAllCaps="true" app:fontFamily="@font/whitney_semibold" app:layout_constrainedHeight="true" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView" />
|
||||
<ProgressBar android:id="@id/loading_button_progress" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="@id/loading_button_text" app:layout_constraintHeight_max="48.0dip" app:layout_constraintLeft_toLeftOf="@id/loading_button_text" app:layout_constraintRight_toRightOf="@id/loading_button_text" app:layout_constraintTop_toTopOf="@id/loading_button_text" />
|
||||
<ProgressBar android:id="@id/loading_button_progress" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="@id/loading_button_text" app:layout_constraintHeight_max="48.0dip" app:layout_constraintLeft_toLeftOf="@id/loading_button_text" app:layout_constraintRight_toRightOf="@id/loading_button_text" app:layout_constraintTop_toTopOf="@id/loading_button_text" />
|
||||
</merge>
|
|
@ -5,6 +5,7 @@
|
|||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/participant_bg_avatar" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
||||
<View android:id="@id/participant_bg_letterbox" android:background="@android:color/black" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
||||
<com.discord.views.VoiceUserView android:id="@id/participant_voice_user_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" app:vuv_avatar_size="@dimen/avatar_size_large" />
|
||||
<com.discord.views.video.AppVideoStreamRenderer android:id="@id/participant_video_stream_renderer" android:layout_width="fill_parent" android:layout_height="fill_parent" app:vcpv_is_overlay="true" app:vcpv_match_video_orientation="false" />
|
||||
</RelativeLayout>
|
||||
<ImageView android:id="@id/participant_voice_status_indicator" android:background="@drawable/drawable_bg_voice_status_indicator" android:padding="4.0dip" android:layout_width="24.0dip" android:layout_height="24.0dip" android:layout_marginTop="8.0dip" android:layout_marginRight="8.0dip" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
|
||||
<RelativeLayout android:id="@id/participant_video_loading_indicator" android:background="@android:color/black" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.discord.views.VoiceUserView android:id="@id/voice_user_list_item_user_avatar" android:layout_width="wrap_content" android:layout_height="wrap_content" app:vuv_avatar_size="52.0dip" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/voice_user_list_item_user_name" android:layout_width="0.0dip" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:singleLine="true" android:layout_weight="1.0" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:id="@id/voice_user_list_item_live_indicator" android:background="@drawable/drawable_rect_rounded_red_500" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_medium" android:text="@string/live" android:textAllCaps="true" android:fontFamily="@font/whitney_semibold" style="@style/UiKit.TextView" />
|
||||
<ImageView android:id="@id/voice_user_list_item_mute_indicator" android:padding="8.0dip" android:src="@drawable/ic_mic_grey_24dp" android:contentDescription="@string/form_label_muted" style="@style/UiKit.ImageView" />
|
||||
<ImageView android:id="@id/voice_user_list_item_deafen_indicator" android:padding="8.0dip" android:src="@drawable/ic_headset_grey_24dp" android:contentDescription="@string/sound_deafen" style="@style/UiKit.ImageView" />
|
||||
</LinearLayout>
|
|
@ -1,10 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UiKit.Chat.Embed.Container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_game_invite_cover_image" android:background="@drawable/drawable_game_invite_cover_image_background" android:layout_width="128.0dip" android:layout_height="0.0dip" android:scaleType="centerCrop" android:alpha="0.4" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_min="128.0dip" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:overlayImage="@drawable/drawable_game_invite_gradient_overlay" app:roundBottomLeft="false" app:roundTopLeft="false" app:roundedCornerRadius="4.0dip" app:viewAspectRatio="1.0" />
|
||||
<TextView android:id="@id/item_game_invite_header" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<TextView android:textSize="18.0sp" android:textColor="?primary_100" android:id="@id/item_game_invite_status" android:layout_marginTop="@dimen/uikit_spacing_medium" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_header" app:layout_constraintStart_toStartOf="@id/item_game_invite_header" app:layout_constraintTop_toBottomOf="@id/item_game_invite_header" style="@style/UiKit.TextView" />
|
||||
<com.google.android.material.button.MaterialButton android:textAppearance="@style/UiKit.TextView" android:id="@id/item_game_invite_action_btn" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/game_action_button_play" app:backgroundTint="@color/status_green_500" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/item_game_invite_status" app:layout_constraintVertical_bias="1.0" style="@style/Widget.MaterialComponents.Button" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_game_invite_recycler" android:layout_width="0.0dip" android:layout_height="@dimen/avatar_size_standard" app:layout_constraintBottom_toTopOf="@id/item_game_invite_action_btn" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_status" app:layout_constraintRight_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintStart_toStartOf="@id/item_game_invite_status" app:layout_constraintTop_toBottomOf="@id/item_game_invite_status" app:layout_constraintVertical_bias="1.0" app:layout_goneMarginBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<TextView android:gravity="end" android:id="@id/item_game_invite_application_name" android:layout_width="0.0dip" android:layout_height="wrap_content" android:maxLines="2" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="@id/item_game_invite_cover_image" style="@style/UiKit.Chat.Embed.Footer" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<com.discord.widgets.chat.list.ViewEmbedGameInvite style="@style/UiKit.Chat.Embed.Container" />
|
|
@ -8,6 +8,7 @@
|
|||
<LinearLayout android:paddingBottom="@dimen/padding_bottom_fab_screen" android:focusableInTouchMode="true" android:descendantFocusability="beforeDescendants" android:baselineAligned="false" android:animateLayoutChanges="true" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:paddingTop="@dimen/uikit_spacing_medium" android:text="@string/message_preview" android:textAllCaps="true" style="@style/UiKit.Search.Header" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:orientation="horizontal" android:id="@id/external_share_list" android:background="?container_bg_dark_a60" android:visibility="gone" android:clipToPadding="false" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
<com.discord.widgets.chat.list.ViewEmbedGameInvite android:id="@id/external_share_activity_action_preview" android:background="?chat_embed_bg" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.ConstraintLayout" />
|
||||
<EditText android:id="@id/external_share_comment" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:hint="@string/add_a_comment_optional" android:inputType="textAutoComplete|textAutoCorrect|textCapSentences" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
||||
<TextView android:text="@string/share_to" android:textAllCaps="true" style="@style/UiKit.Search.Header" />
|
||||
<com.discord.app.AppViewFlipper android:id="@id/search_flipper" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<TextView android:id="@id/boost_confirmation_warning" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/premium_guild_subscribe_confirm_cooldown_warning" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
<LinearLayout android:id="@id/boost_confirmation_button_container" android:layout_margin="@dimen/uikit_spacing_large" android:layout_alignParentBottom="true" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
|
|
12
com.discord/res/layout/widget_spectate.xml
Normal file
12
com.discord/res/layout/widget_spectate.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:background="@color/black" android:fitsSystemWindows="true" android:keepScreenOn="true" style="@style/UiKit.ViewGroup.Page"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.discord.views.video.ApplicationStreamView android:id="@id/application_stream_view" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
<com.google.android.material.appbar.AppBarLayout android:id="@id/action_bar_toolbar_layout" android:layout_width="fill_parent" android:layout_height="?actionBarSize" app:layout_constraintTop_toTopOf="parent" style="@style/AppTheme.AppBarLayout.Flat">
|
||||
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar.Transparent" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<include android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" app:layout_constrainedHeight="true" app:layout_constraintBottom_toTopOf="@id/spectate_push_to_talk" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" layout="@layout/widget_spectate_controls" />
|
||||
<Button android:textColor="@color/primary_100" android:id="@id/spectate_push_to_talk" android:background="@drawable/drawable_button_primary_700" android:visibility="gone" android:layout_width="0.0dip" android:layout_margin="@dimen/uikit_spacing_medium" android:text="@string/keybind_push_to_talk" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" style="@style/UiKit.Button" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
7
com.discord/res/layout/widget_spectate_controls.xml
Normal file
7
com.discord/res/layout/widget_spectate_controls.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:gravity="center" android:id="@id/spectate_controls" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:id="@id/spectate_controls_disconnect_stream" android:background="@drawable/drawable_circle_primary_700" android:layout_margin="11.0dip" android:src="@drawable/ic_stop_stream_v2" android:contentDescription="@string/video" style="@style/UiKit.Calls.ButtonCircle" />
|
||||
<ImageView android:id="@id/spectate_controls_disconnect_voice" android:background="@drawable/drawable_circle_red" android:layout_margin="11.0dip" android:src="@drawable/ic_call_audio_stop_white_24dp" android:contentDescription="@string/disconnect" style="@style/UiKit.Calls.ButtonCircle" />
|
||||
<ImageView android:id="@id/spectate_controls_mute" android:background="@drawable/drawable_circle_primary_700" android:layout_margin="11.0dip" android:src="@drawable/ic_mic_white_24dp" android:contentDescription="@string/mute" style="@style/UiKit.Calls.ButtonCircle" />
|
||||
</LinearLayout>
|
23
com.discord/res/layout/widget_spectate_report_problem.xml
Normal file
23
com.discord/res/layout/widget_spectate_report_problem.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?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">
|
||||
<LinearLayout android:id="@id/notice_header_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:id="@id/report_problem_header" android:padding="@dimen/uikit_spacing_large" android:text="@string/stream_report_a_problem" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<View style="@style/UiKit.Divider" />
|
||||
</LinearLayout>
|
||||
<ScrollView android:layout_width="fill_parent" android:layout_height="200.0dip">
|
||||
<RadioGroup android:id="@id/report_error_radio_group" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/report_error_stream_black" android:layout_width="fill_parent" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_black" style="@style/UiKit.TextView" />
|
||||
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/report_error_blurry" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_blurry" style="@style/UiKit.TextView" />
|
||||
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/report_error_lagging" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_lagging" style="@style/UiKit.TextView" />
|
||||
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/report_error_out_of_sync" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_out_of_sync" style="@style/UiKit.TextView" />
|
||||
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/report_error_audio_absent" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_audio_missing" style="@style/UiKit.TextView" />
|
||||
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/report_error_audio_poor" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_audio_poor" style="@style/UiKit.TextView" />
|
||||
</RadioGroup>
|
||||
</ScrollView>
|
||||
<View style="@style/UiKit.Settings.Divider" />
|
||||
<LinearLayout style="@style/UiKit.Dialog.ButtonContainer">
|
||||
<Button android:textColor="@color/white" android:layout_gravity="center_vertical" android:id="@id/report_problem_cancel" android:background="?selectableItemBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:text="@string/cancel" />
|
||||
<com.discord.views.LoadingButton android:layout_gravity="center_vertical" android:id="@id/report_problem_submit" android:background="@drawable/drawable_button_green_neutral" android:padding="@dimen/uikit_spacing_medium" android:paddingTop="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_large" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:fontFamily="@font/whitney_medium" app:lb_disabled_alpha="0.5" app:lb_text="@string/stream_report_submit" app:lb_text_color="@color/white" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
16
com.discord/res/layout/widget_spectate_stream_full.xml
Normal file
16
com.discord/res/layout/widget_spectate_stream_full.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.Page.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout android:id="@id/notice_header_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:padding="@dimen/uikit_spacing_large" android:text="@string/stream_full_modal_header" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<View style="@style/UiKit.Divider" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textColor="@color/primary_200" android:id="@id/cancel_premium_grandfathered" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_full_modal_body" android:fontFamily="@font/whitney_bold" style="@style/UiKit.TextView" />
|
||||
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/img_wumpus_tophat_dark" android:importantForAccessibility="no" />
|
||||
</LinearLayout>
|
||||
<View style="@style/UiKit.Settings.Divider" />
|
||||
<LinearLayout style="@style/UiKit.Dialog.ButtonContainer">
|
||||
<Button android:textColor="@color/white" android:layout_gravity="center_vertical" android:id="@id/stream_full_confirm" android:background="@drawable/drawable_button_purple" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:text="@string/okay" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
10
com.discord/res/layout/widget_spectators.xml
Normal file
10
com.discord/res/layout/widget_spectators.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?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">
|
||||
<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>
|
||||
<RelativeLayout style="@style/UiKit.ViewGroup.RelativeLayout.AppBarScrollingViewBehavior">
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/spectators_list" android:background="?colorPrimary" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
||||
</RelativeLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
23
com.discord/res/layout/widget_stream_feedback_dialog.xml
Normal file
23
com.discord/res/layout/widget_stream_feedback_dialog.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:animateLayoutChanges="false" style="@style/UiKit.ViewGroup.Page.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<LinearLayout android:id="@id/notice_header_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:padding="@dimen/uikit_spacing_large" android:text="@string/stream_report_a_problem_post_stream" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<View style="@style/UiKit.Divider" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" android:animateLayoutChanges="false" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textColor="@color/primary_200" android:id="@id/cancel_premium_grandfathered" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_rating_body" android:fontFamily="@font/whitney_bold" style="@style/UiKit.TextView" />
|
||||
<LinearLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:animateLayoutChanges="false">
|
||||
<ImageView android:id="@id/stream_feedback_sad" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:src="@drawable/drawable_stream_feedback_face_sad_grayscale" />
|
||||
<ImageView android:id="@id/stream_feedback_neutral" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:src="@drawable/drawable_stream_feedback_face_neutral_grayscale" />
|
||||
<ImageView android:id="@id/stream_feedback_happy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:src="@drawable/drawable_stream_feedback_face_happy_grayscale" />
|
||||
</LinearLayout>
|
||||
<TextView android:textColor="?primary_200" android:id="@id/stream_feedback_reason_header" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_problem_header_mobile" android:textAllCaps="true" style="@style/UiKit.TextView.Bold" />
|
||||
<Spinner android:id="@id/stream_feedback_reason_spinner" android:background="?bg_payment_method_spinner_closed" android:layout_width="fill_parent" android:layout_height="wrap_content" android:popupBackground="?bg_payment_method_spinner_dropdown" />
|
||||
</LinearLayout>
|
||||
<View style="@style/UiKit.Settings.Divider" />
|
||||
<LinearLayout style="@style/UiKit.Dialog.ButtonContainer">
|
||||
<Button android:textColor="?primary_300" android:layout_gravity="center_vertical" android:id="@id/stream_feedback_cancel" android:background="@color/transparent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:foreground="?selectableItemBackground" android:text="@string/cancel" style="@style/UiKit.Button" />
|
||||
<com.discord.views.LoadingButton android:layout_gravity="center_vertical" android:id="@id/stream_feedback_submit" android:background="@drawable/drawable_button_purple_neutral" android:padding="@dimen/uikit_spacing_medium" android:paddingTop="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_large" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:fontFamily="@font/whitney_medium" app:lb_disabled_alpha="0.5" app:lb_text="@string/stream_report_submit" app:lb_text_color="@color/white" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
|
@ -20,7 +20,7 @@
|
|||
<TextView android:id="@id/rich_presence_state" style="@style/UiKit.TextView.Marquee" />
|
||||
<TextView android:id="@id/rich_presence_time" style="@style/UiKit.TextView.Marquee" />
|
||||
</LinearLayout>
|
||||
<FrameLayout android:id="@id/rich_presence_watch_button" android:background="@color/brand_500" android:paddingTop="10.0dip" android:paddingBottom="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:foreground="?selectableItemBackground" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toLeftOf="@id/embed_guideline" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toStartOf="@id/embed_guideline" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data">
|
||||
<FrameLayout android:id="@id/rich_presence_watch_button" android:background="@color/brand_500" android:paddingTop="10.0dip" android:paddingBottom="10.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:foreground="?selectableItemBackground" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toLeftOf="@id/embed_guideline" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toStartOf="@id/embed_guideline" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data">
|
||||
<TextView android:textColor="@color/primary_100" android:ellipsize="end" android:gravity="center_vertical" android:layout_gravity="center" android:id="@id/rich_presence_play_button_text" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:text="@string/watch_stream" android:maxLines="1" android:drawableLeft="@drawable/ic_live_stream_white_24dp" android:drawablePadding="@dimen/uikit_textsize_medium" android:textAllCaps="true" android:drawableStart="@drawable/ic_live_stream_white_24dp" style="@style/UiKit.TextView.Semibold" />
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,3 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_mutual_friends_recycler_view" style="@style/UiKit.ViewGroup.RecyclerView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" />
|
||||
<LinearLayout android:background="?primary_630" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.google.android.material.appbar.AppBarLayout android:id="@id/user_mutual_friends_toolbar_layout" android:background="?primary_700" style="@style/AppTheme.AppBarLayout.Flat">
|
||||
<androidx.appcompat.widget.Toolbar app:navigationIcon="?ic_action_bar_back" style="@style/AppTheme.Toolbar.Transparent" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_mutual_friends_recycler_view" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
</LinearLayout>
|
|
@ -1,3 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_mutual_guilds_recycler_view" style="@style/UiKit.ViewGroup.RecyclerView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" />
|
||||
<LinearLayout android:background="?primary_630" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.google.android.material.appbar.AppBarLayout android:id="@id/user_mutual_guilds_toolbar_layout" android:background="?primary_700" style="@style/AppTheme.AppBarLayout.Flat">
|
||||
<androidx.appcompat.widget.Toolbar app:navigationIcon="?ic_action_bar_back" style="@style/AppTheme.Toolbar.Transparent" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_mutual_guilds_recycler_view" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
</LinearLayout>
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView android:background="?primary_630_bg" style="@style/UiKit.ViewGroup.NestedScrollView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<LinearLayout android:focusable="true" android:focusableInTouchMode="true" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<FrameLayout android:background="?primary_700" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||
<com.discord.widgets.user.profile.UserProfileHeaderView android:id="@id/user_sheet_profile_header_view" android:layout_width="fill_parent" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent" app:user_profile_header_background_color="?primary_700" />
|
||||
<ImageView android:layout_gravity="end|center|top" android:id="@id/user_sheet_more_button" android:background="?bg_pressed_highlight" android:padding="@dimen/uikit_spacing_small" android:layout_marginTop="@dimen/uikit_spacing_medium" android:src="?ic_more" android:contentDescription="@string/more" style="@style/UiKit.ImageView.Clickable" />
|
||||
|
@ -20,16 +20,24 @@
|
|||
<com.google.android.material.button.MaterialButton android:id="@id/user_sheet_friend_request_ignore_button" android:layout_marginRight="@dimen/uikit_spacing_medium" android:text="@string/friend_request_ignore" android:layout_weight="1.0" style="@style/UiKit.Button.Compact.Grey" />
|
||||
<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>
|
||||
<View android:id="@id/user_sheet_audio_settings_divider" style="@style/UiKit.Divider" />
|
||||
<View android:id="@id/user_sheet_audio_settings_divider" android:visibility="gone" style="@style/UiKit.Divider" />
|
||||
<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" />
|
||||
<View android:id="@id/user_sheet_activity_divider" android:visibility="gone" style="@style/UiKit.Divider" />
|
||||
<FrameLayout android:id="@id/rich_presence_container" android:visibility="gone" style="@style/UiKit.ViewGroup" />
|
||||
<LinearLayout android:id="@id/user_sheet_guild_container" android:paddingBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<View android:id="@id/user_sheet_guild_divider" style="@style/UiKit.Divider" />
|
||||
<View android:id="@id/user_sheet_guild_divider" android:visibility="gone" style="@style/UiKit.Divider" />
|
||||
<TextView android:id="@id/user_sheet_guild_header" android:contentDescription="@string/user_profile_guild_name_content_description" style="@style/UiKit.Settings.Item.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:overScrollMode="never" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
<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" />
|
||||
</LinearLayout>
|
||||
<View android:id="@id/user_sheet_activity_divider" android:visibility="gone" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.Settings.Divider" />
|
||||
<FrameLayout android:id="@id/rich_presence_container" android:visibility="gone" style="@style/UiKit.ViewGroup" />
|
||||
<View android:id="@id/user_sheet_connections_divider" style="@style/UiKit.Divider" />
|
||||
<TextView android:id="@id/user_sheet_connections_header" android:text="@string/connections" style="@style/UiKit.Settings.Item.Header" />
|
||||
<com.discord.widgets.user.profile.UserProfileConnectionsView android:id="@id/user_sheet_connections_view" android:layout_width="fill_parent" android:layout_height="wrap_content" />
|
||||
<View android:id="@id/user_sheet_note_divider" style="@style/UiKit.Divider" />
|
||||
<TextView android:id="@id/user_sheet_note_header" android:text="@string/note" style="@style/UiKit.Settings.Item.Header" />
|
||||
<com.google.android.material.textfield.TextInputLayout android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:counterEnabled="true" app:counterMaxLength="256" style="@style/UiKit.Form.Field.EditText.Wrap">
|
||||
<com.discord.app.AppEditText android:id="@id/user_sheet_note_text_field" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:hint="@string/note_placeholder_mobile" android:maxLength="256" style="@style/UiKit.Form.Field.EditText" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<View android:id="@id/user_sheet_actions_divider" style="@style/UiKit.Divider" />
|
||||
<TextView android:id="@id/user_sheet_actions_header" android:text="@string/actions" style="@style/UiKit.Settings.Item.Header" />
|
||||
<TextView android:gravity="center_vertical" android:id="@id/user_sheet_profile" android:text="@string/profile" android:drawableLeft="?ic_account" android:drawableStart="?ic_account" style="@style/UiKit.Settings.Item.Icon" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue