Changes of com.discord v1249
This commit is contained in:
parent
65ed21516b
commit
cef9fa9a2e
1263 changed files with 39712 additions and 39456 deletions
|
@ -2,10 +2,10 @@
|
|||
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout android:id="@id/voice_fullscreen_controls_controls_wrap" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_camera" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_videocam_white_24dp" android:layout_weight="1.0" android:contentDescription="@string/deafen" />
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_camera" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_videocam_white_24dp" android:layout_weight="1.0" android:contentDescription="@string/camera" />
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_deafen_state" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:src="?ic_deafen_state" android:layout_weight="1.0" android:contentDescription="@string/deafen" />
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_mute_state" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:src="?ic_mic_state" android:layout_weight="1.0" android:contentDescription="@string/mute" />
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_speaker" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_audio_output_white_24dp" android:tint="?colorInteractiveNormal" android:layout_weight="1.0" android:contentDescription="@string/use_speaker" />
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_speaker" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_audio_output_white_24dp" android:tint="?colorInteractiveNormal" android:layout_weight="1.0" android:contentDescription="@string/switch_audio_output" />
|
||||
<ImageView android:id="@id/voice_fullscreen_controls_disconnect" android:background="?selectableItemBackground" android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_call_disconnect_24dp" android:tint="@color/status_red_500" android:layout_weight="1.0" android:contentDescription="@string/disconnect_from_voice" />
|
||||
</LinearLayout>
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/voice_fullscreen_controls_ptt" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/input_mode_ptt" style="@style/UiKit.Material.Button" />
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<androidx.appcompat.widget.AppCompatImageButton android:id="@id/flex_input_gallery_btn" android:background="@drawable/drawable_circle_black" android:padding="@dimen/uikit_spacing_medium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/uikit_spacing_medium" android:src="@drawable/ic_gallery_24dp" android:contentDescription="@string/attachment_photos" android:backgroundTint="?colorBackgroundSecondaryAlt" app:tint="?colorInteractiveNormal" style="@style/FlexInput.Input" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:id="@id/flex_input_main_input_container" android:background="@drawable/drawable_bg_corners_20dp" android:paddingLeft="12.0dip" android:paddingRight="@dimen/uikit_spacing_small" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_toLeftOf="@id/flex_input_send_btn_container" android:layout_toRightOf="@id/flex_input_left_btns_container" android:layout_centerVertical="true" android:animateLayoutChanges="true" android:backgroundTint="?colorBackgroundSecondaryAlt" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<com.lytefast.flexinput.widget.FlexEditText android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:textColorHint="?colorTextMuted" android:gravity="center_vertical" android:id="@id/flex_input_text_input" android:background="@android:color/transparent" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:hint="@string/send_a_message" android:maxLines="5" android:layout_weight="1.0" android:inputType="textAutoComplete|textMultiLine|textShortMessage" />
|
||||
<com.lytefast.flexinput.widget.FlexEditText android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:textColorHint="?colorTextMuted" android:layout_gravity="center_vertical" android:id="@id/flex_input_text_input" android:background="@color/transparent" android:paddingTop="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_small" android:focusableInTouchMode="true" android:scrollbars="vertical" android:layout_width="0.0dip" android:minHeight="40.0dip" android:maxLines="5" android:layout_weight="1.0" android:lineSpacingMultiplier="1.0" android:inputType="textCapSentences|textMultiLine" android:imeOptions="flagNoExtractUi" style="@style/UiKit.TextView" />
|
||||
<androidx.appcompat.widget.AppCompatImageButton android:layout_gravity="center_vertical" android:id="@id/flex_input_emoji_btn" android:background="@null" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:src="@drawable/ic_emoji_24dp" android:drawablePadding="0.0dip" android:contentDescription="@string/emoji" app:tint="?colorInteractiveNormal" style="@style/UiKit.ImageButton" />
|
||||
</LinearLayout>
|
||||
<FrameLayout android:id="@id/flex_input_send_btn_container" android:background="@drawable/drawable_circle_black" android:clipToPadding="false" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="12.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/send_message" android:animateLayoutChanges="true" android:backgroundTint="?chat_send_btn_bg">
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView android:id="@id/user_profile_connections_mutual_guilds_item" android:background="?bg_pressed_highlight" android:text="@string/mutual_guilds" android:drawableEnd="?ic_navigate_next" style="@style/UiKit.ListItem.Icon" />
|
||||
<TextView android:id="@id/user_profile_connections_mutual_friends_item" android:background="?bg_pressed_highlight" android:text="@string/mutual_friends" 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" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_profile_connections_view_recycler" android:contentDescription="@string/connections" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
</LinearLayout>
|
|
@ -1,3 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView android:background="?primary_700_circle" android:padding="12.0dip" android:layout_width="@dimen/chat_input_emoji_size" android:layout_height="@dimen/chat_input_emoji_size" android:src="@drawable/ic_chat_list_actions_add_reaction" app:actualImageScaleType="fitCenter" app:tint="?colorInteractiveNormal"
|
||||
<ImageView android:background="?primary_700_circle" android:padding="12.0dip" android:layout_width="@dimen/chat_input_emoji_size" android:layout_height="@dimen/chat_input_emoji_size" android:src="@drawable/ic_chat_list_actions_add_reaction" android:contentDescription="@string/emoji_popout_show_more_emojis" app:actualImageScaleType="fitCenter" app:tint="?colorInteractiveNormal"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" />
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat.Transparent" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<androidx.appcompat.widget.Toolbar app:navigationIcon="?ic_action_bar_back" style="@style/AppTheme.Toolbar.Transparent" />
|
||||
<androidx.appcompat.widget.Toolbar app:navigationContentDescription="@string/back" app:navigationIcon="?ic_action_bar_back" style="@style/AppTheme.Toolbar.Transparent" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
|
@ -1,37 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:orientation="vertical" style="@style/UiKit.ViewGroup.Page.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
<androidx.core.widget.NestedScrollView android:id="@id/change_log_special_scrollview" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||
<LinearLayout android:id="@id/change_log_special_contents" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<androidx.cardview.widget.CardView android:id="@id/changelog_special_header_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="-24.0dip" app:cardCornerRadius="24.0dip">
|
||||
<LinearLayout android:background="@drawable/bg_changelog_special_header" android:paddingTop="68.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textSize="32.0sp" android:textColor="@color/white" android:layout_gravity="center" android:text="@string/whats_new" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textStyle="italic" android:textColor="@color/white" android:layout_gravity="center" android:id="@id/change_log_special_date" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:text="@string/change_log_md_date" style="@style/UiKit.TextView.Subtext" />
|
||||
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/changelog_special_header_art" android:scaleType="fitXY" android:adjustViewBounds="true" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<androidx.cardview.widget.CardView android:layout_gravity="bottom|center" android:id="@id/changelog_special_video" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="-24.0dip" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8.0dip" app:cardElevation="8.0dip">
|
||||
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||
<VideoView android:id="@id/change_log_video" android:layout_width="fill_parent" android:layout_height="184.0dip" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@id/change_log_thumbnail" android:visibility="gone" android:clickable="false" android:layout_width="fill_parent" android:layout_height="184.0dip" android:scaleType="fitXY" app:backgroundImage="@color/primary_900_alpha_60" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@id/change_log_video_overlay" android:padding="@dimen/uikit_spacing_medium" android:clickable="false" android:layout_width="64.0dip" android:layout_height="64.0dip" app:backgroundImage="@color/primary_900_alpha_60" app:placeholderImage="@drawable/ic_play_arrow_grey_24dp" app:placeholderImageScaleType="fitCenter" app:roundAsCircle="true" />
|
||||
</FrameLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<com.discord.app.AppTextView android:textSize="@dimen/uikit_textsize_large" android:id="@id/change_log_body" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_marginTop="-16.0dip" android:layout_marginBottom="@dimen/uikit_spacing_large" android:text="@string/change_log_md_body" android:lineSpacingMultiplier="1.0" android:fontFamily="@font/whitney_medium" style="@style/UiKit.TextView" />
|
||||
<androidx.cardview.widget.CardView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:cardBackgroundColor="@color/white" app:cardCornerRadius="8.0dip" app:cardElevation="8.0dip">
|
||||
<LinearLayout android:paddingTop="@dimen/uikit_spacing_xlarge" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_xlarge" android:paddingRight="@dimen/uikit_spacing_xlarge" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textColor="@color/black" android:gravity="center" android:layout_gravity="center" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/changelog_special_cta_title" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.H1.Bold" />
|
||||
<TextView android:textColor="@color/primary_dark_700" android:gravity="center" android:layout_gravity="center" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/changelog_special_cta_body" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Large" />
|
||||
<com.google.android.material.button.MaterialButton android:gravity="center" android:layout_gravity="center" android:id="@id/change_log_special_button" android:layout_width="wrap_content" android:text="@string/changelog_special_cta" android:contentDescription="\@strings/changelog_special_cta" style="@style/UiKit.Material.Button" />
|
||||
</LinearLayout>
|
||||
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" android:src="@drawable/changelog_special_cta_art" android:scaleType="fitXY" android:adjustViewBounds="true" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<ImageButton android:layout_gravity="start" android:id="@id/change_log_special_close" android:background="@color/transparent" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:src="@drawable/changelog_special_close" android:scaleType="fitXY" android:adjustViewBounds="true" android:contentDescription="\@strings/close" />
|
||||
<ImageButton android:layout_gravity="start" android:id="@id/change_log_special_back" android:background="@color/transparent" android:visibility="invisible" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:src="@drawable/changelog_special_back" android:scaleType="fitXY" android:adjustViewBounds="true" android:contentDescription="\@strings/back" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.discord.widgets.chat.input.WidgetChatInputEditText android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:textColorHint="?colorTextMuted" android:layout_gravity="center_vertical" android:background="@color/transparent" android:paddingTop="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_small" android:focusableInTouchMode="true" android:scrollbars="vertical" android:layout_width="fill_parent" android:minHeight="40.0dip" android:maxLines="5" android:layout_weight="1.0" android:lineSpacingMultiplier="1.0" android:inputType="textCapSentences|textMultiLine" android:imeOptions="flagNoExtractUi" style="@style/UiKit.TextView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" />
|
|
@ -2,7 +2,7 @@
|
|||
<androidx.core.widget.NestedScrollView android:background="?colorBackgroundPrimary" style="@style/UiKit.ViewGroup.NestedScrollView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<LinearLayout android:id="@id/dialog_chat_actions_container" android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<androidx.recyclerview.widget.RecyclerView android:layout_gravity="center" android:id="@id/dialog_chat_actions_add_reaction_emojis_list" android:padding="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:layout_gravity="center" android:id="@id/dialog_chat_actions_add_reaction_emojis_list" android:padding="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_height="wrap_content" android:contentDescription="@string/add_reaction" android:nestedScrollingEnabled="false" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<TextView android:id="@id/dialog_chat_actions_copy" android:text="@string/copy_text" android:drawableStart="?ic_copy" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_manage_reactions" android:text="@string/reactions" android:drawableStart="?ic_reactions" style="@style/UiKit.Settings.Item.Icon" />
|
||||
<TextView android:id="@id/dialog_chat_actions_remove_all_reactions" android:text="@string/remove_all_reactions" android:drawableStart="?ic_delete_sweep" style="@style/UiKit.Settings.Item.Icon" />
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_padding" android:layout_marginTop="8.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_padding" android:layout_marginBottom="8.0dip" android:foreground="?bg_pressed_highlight" app:cardBackgroundColor="?colorBackgroundSecondary" app:cardCornerRadius="8.0dip" app:cardElevation="0.0dip" app:strokeWidth="0.0dip"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:paddingLeft="16.0dip" android:paddingTop="8.0dip" android:paddingRight="16.0dip" android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||
<ImageView android:id="@id/chat_list_adapter_item_call_icon" android:layout_width="24.0dip" android:layout_height="24.0dip" android:importantForAccessibility="no" android:layout_marginEnd="@dimen/uikit_spacing_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />
|
||||
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textSize="@dimen/uikit_textsize_large" android:textColor="?colorTextNormal" android:id="@id/chat_list_adapter_item_call_title" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:lineSpacingMultiplier="1.0" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_call_icon" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_chainStyle="packed" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="12.0dip" android:id="@id/chat_list_adapter_item_call_subtitle" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:text="@string/sample_time_pm" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_call_icon" app:layout_constraintTop_toBottomOf="@id/chat_list_adapter_item_call_title" app:layout_constraintVertical_chainStyle="packed" style="@style/CallMessage.Subtitle" />
|
||||
<LinearLayout android:id="@id/chat_list_adapter_item_call_unjoined_ongoing_subtitle" android:visibility="gone" android:layout_width="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_call_icon" app:layout_constraintTop_toBottomOf="@id/chat_list_adapter_item_call_title" app:layout_constraintVertical_chainStyle="packed" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<TextView android:textSize="12.0dip" android:id="@id/chat_list_adapter_item_unjoined_call_duration" android:layout_width="wrap_content" style="@style/CallMessage.Subtitle" />
|
||||
<TextView android:textSize="12.0dip" android:layout_width="wrap_content" android:text="@string/ongoing_call_tap_to_join" android:paddingStart="2.0dip" style="@style/CallMessage.Subtitle" />
|
||||
</LinearLayout>
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/chat_list_adapter_item_call_participants" android:layout_width="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
|
@ -7,6 +7,6 @@
|
|||
<androidx.recyclerview.widget.RecyclerView android:id="@id/friends_list_loading" android:background="?colorBackgroundPrimary" android:scrollbars="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.RecyclerView" />
|
||||
</com.discord.app.AppViewFlipper>
|
||||
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout">
|
||||
<androidx.appcompat.widget.Toolbar app:contentInsetStartWithNavigation="0.0dip" app:title="@string/friends" style="@style/AppTheme.Toolbar" />
|
||||
<androidx.appcompat.widget.Toolbar app:contentInsetStartWithNavigation="0.0dip" style="@style/AppTheme.Toolbar" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
</RelativeLayout>
|
|
@ -20,7 +20,7 @@
|
|||
<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" />
|
||||
</FrameLayout>
|
||||
<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_medium" 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_music_progress_container" style="@style/UserProfile.PresenceSection.MaterialButton" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_primary_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" 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_music_progress_container" style="@style/UserProfile.PresenceSection.MaterialButton" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
|
@ -14,7 +14,7 @@
|
|||
<TextView android:id="@id/rich_presence_time" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
||||
</LinearLayout>
|
||||
<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" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_primary_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>
|
|
@ -4,7 +4,7 @@
|
|||
<com.google.android.material.appbar.AppBarLayout android:background="?toolbarColor" style="@style/AppTheme.AppBarLayout">
|
||||
<com.google.android.material.appbar.CollapsingToolbarLayout app:titleEnabled="false" style="@style/AppTheme.CollapsingToolbarLayout">
|
||||
<com.discord.widgets.user.profile.UserProfileHeaderView android:id="@id/user_settings_profile_header_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="?actionBarSize" app:layout_collapseMode="parallax" app:user_profile_header_background_color="?toolbarColor" />
|
||||
<androidx.appcompat.widget.Toolbar app:layout_collapseMode="pin" app:navigationContentDescription="@string/back" app:title="@string/user_settings" style="@style/AppTheme.Toolbar" />
|
||||
<androidx.appcompat.widget.Toolbar app:layout_collapseMode="pin" app:navigationContentDescription="@string/back" style="@style/AppTheme.Toolbar" />
|
||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
<androidx.core.widget.NestedScrollView style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</RelativeLayout>
|
||||
<RelativeLayout android:background="?primary_630" android:paddingTop="@dimen/uikit_spacing_xxlarge" android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RelativeLayout">
|
||||
<LinearLayout android:gravity="center_vertical" android:id="@id/settings_account_avatar_wrap" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<FrameLayout android:id="@id/settings_account_avatar_container" android:background="?selectableItemBackgroundBorderless" android:layout_width="wrap_content" android:layout_height="wrap_content">
|
||||
<FrameLayout android:id="@id/settings_account_avatar_container" android:background="?selectableItemBackgroundBorderless" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/change_avatar">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/settings_account_avatar" app:roundWithOverlayColor="?primary_630" style="@style/Avatar.Large.ExtraAccount" />
|
||||
<ImageView android:layout_gravity="center|right|top" android:id="@id/settings_account_avatar_edit" android:background="@drawable/drawable_circle_white_1" android:layout_width="24.0dip" android:layout_height="24.0dip" android:src="@drawable/ic_upload_image_34dp" android:scaleType="center" />
|
||||
</FrameLayout>
|
||||
|
|
6
com.discord/res/layout/widget_start_call_sheet.xml
Normal file
6
com.discord/res/layout/widget_start_call_sheet.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:background="?colorBackgroundPrimary" style="@style/UiKit.ViewGroup.LinearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<androidx.appcompat.widget.AppCompatTextView android:id="@id/start_call_sheet_voice_item" android:text="@string/start_voice_call" android:drawableStart="@drawable/ic_call_24dp" style="@style/StartCallSheet.Item" />
|
||||
<androidx.appcompat.widget.AppCompatTextView android:id="@id/start_call_sheet_video_item" android:text="@string/start_video_call" android:drawableStart="@drawable/ic_videocam_white_24dp" style="@style/StartCallSheet.Item" />
|
||||
</LinearLayout>
|
|
@ -15,6 +15,9 @@
|
|||
<TextView android:id="@id/rich_presence_state" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
||||
<TextView android:id="@id/rich_presence_time" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
||||
</LinearLayout>
|
||||
<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_primary_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" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_secondary_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_small" 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_primary_button" style="@style/UserProfile.PresenceSection.MaterialButton" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView android:background="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.NestedScrollView"
|
||||
<androidx.core.widget.NestedScrollView android:background="?colorBackgroundSecondary" android:focusable="true" android:focusableInTouchMode="true" android:contentDescription="@string/profile" style="@style/UiKit.ViewGroup.NestedScrollView"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
|
||||
<LinearLayout android:id="@id/user_sheet_content" android:focusable="true" android:focusableInTouchMode="true" android:layout_marginBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<LinearLayout android:id="@id/user_sheet_content" android:layout_marginBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<FrameLayout android:background="?colorBackgroundTertiary" android:layout_width="fill_parent" android:layout_height="wrap_content" android:elevation="@dimen/uikit_elevation_low">
|
||||
<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="?colorBackgroundTertiary" />
|
||||
<ImageView android:layout_gravity="end|center|top" android:id="@id/user_sheet_more_button" android:background="?bg_pressed_highlight" android:padding="@dimen/uikit_spacing_medium" android:src="?ic_more" android:contentDescription="@string/more" style="@style/UiKit.ImageView.Clickable" />
|
||||
|
@ -26,8 +26,8 @@
|
|||
</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" />
|
||||
<com.discord.widgets.roles.RolesListView android:id="@id/user_sheet_roles_list" style="@style/UserProfile.Section" />
|
||||
<TextView android:id="@id/user_sheet_guild_header" style="@style/UserProfile.Section.Header" />
|
||||
<com.discord.widgets.roles.RolesListView android:id="@id/user_sheet_roles_list" android:contentDescription="@string/roles" style="@style/UserProfile.Section" />
|
||||
<androidx.cardview.widget.CardView android:id="@id/user_sheet_admin_card" android:layout_marginTop="@dimen/uikit_spacing_large" 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>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<com.discord.widgets.voice.controls.AnchoredVoiceControlsView android:id="@id/voice_bottom_sheet_controls" android:background="?colorBackgroundSecondary" android:layout_width="0.0dip" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" />
|
||||
<RelativeLayout android:orientation="horizontal" android:id="@id/voice_bottom_sheet_connect_container" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="@id/voice_bottom_sheet_controls" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="@id/voice_bottom_sheet_controls">
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/voice_bottom_sheet_connect" android:layout_width="fill_parent" android:layout_height="48.0dip" android:text="@string/join_voice_channel_cta" android:layout_toStartOf="@id/voice_bottom_sheet_join_video" style="@style/UiKit.Material.Button" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/voice_bottom_sheet_join_video" android:layout_width="48.0dip" android:layout_height="48.0dip" android:layout_marginStart="12.0dip" android:layout_alignParentEnd="true" app:icon="@drawable/ic_videocam_white_24dp" app:iconGravity="textStart" app:iconPadding="0.0dip" style="@style/UiKit.Material.Button" />
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/voice_bottom_sheet_join_video" android:layout_width="48.0dip" android:layout_height="48.0dip" android:contentDescription="@string/join_video_channel" android:layout_marginStart="12.0dip" android:layout_alignParentEnd="true" app:icon="@drawable/ic_videocam_white_24dp" app:iconGravity="textStart" app:iconPadding="0.0dip" style="@style/UiKit.Material.Button" />
|
||||
</RelativeLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
@ -4,8 +4,4 @@
|
|||
<LinearLayout android:id="@id/voice_connected_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<com.google.android.material.button.MaterialButton android:id="@id/voice_connected_ptt" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginRight="10.0dip" android:layout_marginBottom="@dimen/uikit_spacing_small" android:text="@string/input_mode_ptt" style="@style/UiKit.Material.Button" />
|
||||
</LinearLayout>
|
||||
<RelativeLayout android:id="@id/voice_ongoing_container" android:background="?primary_630" android:paddingLeft="16.0dip" android:paddingTop="10.0dip" android:paddingRight="16.0dip" android:paddingBottom="10.0dip" android:visibility="gone" style="@style/UiKit.ViewGroup.RelativeLayout">
|
||||
<TextView android:textColor="?primary_100" android:id="@id/voice_ongoing_user_count_label" android:layout_centerVertical="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="?primary_100" android:gravity="center_vertical" android:text="@string/join" android:drawablePadding="12.0dip" android:layout_centerVertical="true" android:textAllCaps="true" android:drawableEnd="?ic_expand_up" android:layout_alignParentEnd="true" style="@style/UiKit.TextView.Semibold" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue