79 lines
No EOL
16 KiB
XML
79 lines
No EOL
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView style="@style/UiKit.ViewGroup.NestedScrollView"
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<com.discord.app.AppViewFlipper android:id="@id/guild_profile_sheet_flipper" android:background="?colorBackgroundTertiary" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
<ProgressBar android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/guild_profile_sheet_constraint_layout" android:background="?colorBackgroundTertiary" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/guild_profile_sheet_banner" android:layout_width="0.0dip" android:layout_height="wrap_content" app:actualImageScaleType="centerCrop" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:viewAspectRatio="1.78" />
|
|
<androidx.cardview.widget.CardView android:id="@id/guild_profile_sheet_icon_card" android:layout_width="@dimen/avatar_size_xxlarge" android:layout_height="@dimen/avatar_size_xxlarge" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginStart="@dimen/uikit_spacing_large" app:cardBackgroundColor="?colorBackgroundTertiary" app:cardCornerRadius="20.0dip" app:cardElevation="0.0dip" app:contentPadding="@dimen/uikit_spacing_small" app:layout_constraintBottom_toBottomOf="@id/guild_profile_sheet_banner" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@id/guild_profile_sheet_banner">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/guild_profile_sheet_icon" android:layout_width="fill_parent" android:layout_height="fill_parent" app:roundWithOverlayColor="?colorBackgroundTertiary" app:roundedCornerRadius="16.0dip" />
|
|
<TextView android:textColor="@color/primary_100" android:ellipsize="none" android:layout_gravity="center" android:id="@id/guild_profile_sheet_icon_name" android:padding="@dimen/uikit_spacing_small" style="@style/UiKit.TextView.Large.SingleLine" />
|
|
</androidx.cardview.widget.CardView>
|
|
<LinearLayout android:id="@id/guild_profile_sheet_content_container" android:paddingBottom="@dimen/uikit_spacing_large" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:paddingStart="@dimen/uikit_spacing_large" android:paddingEnd="@dimen/uikit_spacing_large" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/guild_profile_sheet_icon_card" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
<ImageView android:layout_gravity="center" android:id="@id/guild_profile_sheet_guild_verified_premium_icon" android:visibility="gone" android:layout_width="24.0dip" android:layout_height="24.0dip" android:importantForAccessibility="no" android:layout_marginEnd="@dimen/uikit_spacing_medium" />
|
|
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:id="@id/guild_profile_sheet_name" style="@style/UiKit.TextView.H1.Bold" />
|
|
</LinearLayout>
|
|
<TextView android:id="@id/guild_profile_sheet_description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView" />
|
|
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
<LinearLayout android:gravity="center" android:id="@id/guild_profile_sheet_online_count" android:layout_width="wrap_content" android:layout_height="wrap_content">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:layout_width="@dimen/uikit_spacing_medium" android:layout_height="@dimen/uikit_spacing_medium" android:layout_marginEnd="@dimen/uikit_spacing_medium" app:placeholderImage="@color/status_green_500" app:roundAsCircle="true" />
|
|
<com.discord.app.AppTextView android:id="@id/guild_profile_sheet_online_count_text" android:layout_marginEnd="@dimen/uikit_spacing_large" style="@style/GuildProfileSheet.DiscoverableGuild.Text" />
|
|
</LinearLayout>
|
|
<LinearLayout android:gravity="center" android:id="@id/guild_profile_sheet_member_count" android:layout_width="wrap_content" android:layout_height="wrap_content">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:layout_width="@dimen/uikit_spacing_medium" android:layout_height="@dimen/uikit_spacing_medium" android:layout_marginEnd="@dimen/uikit_spacing_medium" app:placeholderImage="@color/status_grey_500" app:roundAsCircle="true" />
|
|
<com.discord.app.AppTextView android:id="@id/guild_profile_sheet_member_count_text" style="@style/GuildProfileSheet.DiscoverableGuild.Text" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<View android:id="@id/guild_profile_sheet_content_container_bottom_divider" android:background="?colorBackgroundModifierAccent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/guild_profile_sheet_content_container" style="@style/UiKit.Divider" />
|
|
<LinearLayout android:id="@id/guild_profile_sheet_tab_items" android:layout_width="0.0dip" android:layout_height="wrap_content" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/guild_profile_sheet_content_container_bottom_divider" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_boosts" android:drawableTop="@drawable/ic_member_list_boosted_badge_24dp" android:layout_weight="1.0" style="@style/GuildProfileSheet.TabItems.Button" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_notifications" android:text="@string/notifications" android:drawableTop="@drawable/ic_guild_notifications_24dp" android:layout_weight="1.0" style="@style/GuildProfileSheet.TabItems.Button" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_settings" android:text="@string/settings" android:drawableTop="@drawable/ic_guild_settings_24dp" android:layout_weight="1.0" style="@style/GuildProfileSheet.TabItems.Button" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_invite" android:text="@string/instant_invite" android:drawableTop="@drawable/ic_guild_invite_24dp" android:layout_weight="1.0" style="@style/GuildProfileSheet.TabItems.Button" />
|
|
</LinearLayout>
|
|
<androidx.constraintlayout.widget.Barrier android:id="@id/guild_profile_sheet_actions_top_barrier" android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="bottom" app:constraint_referenced_ids="guild_profile_sheet_tab_items, guild_profile_sheet_content_container" />
|
|
<LinearLayout android:id="@id/guild_profile_sheet_bottom_container" android:background="?colorBackgroundSecondary" android:paddingBottom="@dimen/uikit_spacing_large" android:layout_width="0.0dip" android:paddingStart="@dimen/uikit_spacing_large" android:paddingEnd="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/guild_profile_sheet_actions_top_barrier" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<LinearLayout android:id="@id/guild_profile_sheet_actions" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<androidx.cardview.widget.CardView android:id="@id/guild_profile_sheet_mark_as_read_action" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/GuildProfileSheet.Actions.Card">
|
|
<TextView android:id="@id/guild_profile_sheet_mark_as_read" android:padding="@dimen/uikit_spacing_large" android:text="@string/mark_as_read" style="@style/GuildProfileSheet.Actions.Title" />
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView android:id="@id/guild_profile_sheet_primary_actions" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/GuildProfileSheet.Actions.Card">
|
|
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<TextView android:id="@id/guild_profile_sheet_create_channel" android:padding="@dimen/uikit_spacing_large" android:text="@string/create_channel" style="@style/GuildProfileSheet.Actions.Title" />
|
|
<TextView android:id="@id/guild_profile_sheet_create_category" android:padding="@dimen/uikit_spacing_large" android:text="@string/create_category" style="@style/GuildProfileSheet.Actions.Title" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView android:id="@id/guild_profile_sheet_secondary_actions" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/GuildProfileSheet.Actions.Card">
|
|
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<LinearLayout android:id="@id/guild_profile_sheet_change_nickname" android:background="?bg_pressed_highlight" android:padding="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textSize="@dimen/uikit_textsize_large" android:layout_gravity="center" android:layout_width="fill_parent" android:text="@string/change_nickname" style="@style/UiKit.TextView" />
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorTextMuted" android:layout_gravity="center" android:id="@id/guild_profile_sheet_nickname" android:layout_width="fill_parent" style="@style/UiKit.TextView" />
|
|
</LinearLayout>
|
|
<com.discord.views.CheckedSetting android:id="@id/guild_profile_sheet_allow_dm" app:cs_subtext="@string/allow_server_dms" app:cs_text="@string/direct_messages" style="@style/GuildProfileSheet.Actions.CheckedSetting" />
|
|
<com.discord.views.CheckedSetting android:id="@id/guild_profile_sheet_hide_muted_channels" app:cs_text="@string/hide_muted_channels" style="@style/GuildProfileSheet.Actions.CheckedSetting" />
|
|
<TextView android:textColor="@color/status_red_500" android:id="@id/guild_profile_sheet_leave_server" android:padding="@dimen/uikit_spacing_large" android:text="@string/leave_server" style="@style/GuildProfileSheet.Actions.Title" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView android:id="@id/guild_profile_sheet_developer_actions" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/GuildProfileSheet.Actions.Card">
|
|
<TextView android:id="@id/guild_profile_sheet_copy_id" android:padding="@dimen/uikit_spacing_large" android:text="@string/copy_id" style="@style/GuildProfileSheet.Actions.Title" />
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
<LinearLayout android:gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
<TextView android:textAppearance="@style/UiKit.TextAppearance.Bold" android:textSize="@dimen/uikit_textsize_small" android:textColor="?colorHeaderSecondary" android:id="@id/guild_profile_sheet_emojis_count" android:textAllCaps="true" style="@style/UiKit.TextView" />
|
|
<ImageView android:id="@id/guild_profile_sheet_premium_upsell_dot_separator" android:layout_width="4.0dip" android:layout_height="4.0dip" android:src="@drawable/drawable_circle_white" android:contentDescription="@string/sample_empty_string" android:layout_marginStart="@dimen/uikit_spacing_medium" app:tint="?colorTextMuted" />
|
|
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/premium_tier_2_purple" android:layout_gravity="center" android:id="@id/guild_profile_sheet_premium_upsell_text" android:text="@string/game_popout_nitro_upsell" android:drawablePadding="@dimen/uikit_spacing_small" android:drawableStart="@drawable/ic_nitro_badge_nitro_gradient_16dp" android:layout_marginStart="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView.SingleLine" />
|
|
</LinearLayout>
|
|
<androidx.cardview.widget.CardView android:id="@id/guild_profile_sheet_emojis_card" android:layout_marginTop="@dimen/uikit_spacing_medium" app:contentPadding="@dimen/uikit_spacing_medium" style="@style/GuildProfileSheet.Actions.Card">
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/guild_profile_sheet_emojis" android:layout_width="fill_parent" android:layout_height="wrap_content" app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" />
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/guild_profile_sheet_bottom_actions" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_upload_emoji" android:layout_width="0.0dip" android:text="@string/upload_emoji" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/guild_profile_sheet_join_server" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Material.Button" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_join_server" android:layout_width="0.0dip" android:text="@string/guild_profile_join_server_button" android:layout_marginStart="@dimen/uikit_spacing_medium" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/guild_profile_sheet_view_server" app:layout_constraintStart_toEndOf="@id/guild_profile_sheet_upload_emoji" app:layout_constraintTop_toTopOf="parent" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.Material.Button" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/guild_profile_sheet_view_server" android:layout_width="0.0dip" android:text="@string/guild_popout_view_server_button" android:layout_marginStart="@dimen/uikit_spacing_medium" android:backgroundTint="?colorBackgroundAccent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/guild_profile_sheet_join_server" app:layout_constraintTop_toTopOf="parent" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.Material.Button" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.discord.app.AppViewFlipper>
|
|
</androidx.core.widget.NestedScrollView> |