discord-jadx/app/src/main/res/layout/widget_guild_profile_sheet.xml

79 lines
15 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/res_2131952597_uikit_viewgroup_nestedscrollview">
<com.discord.app.AppViewFlipper android:id="@+id/guild_profile_sheet_flipper" android:background="?attr/colorBackgroundTertiary" android:layout_width="match_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="?attr/colorBackgroundTertiary" android:layout_width="match_parent" android:layout_height="wrap_content">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/guild_profile_sheet_banner" android:layout_width="0dp" android:layout_height="wrap_content" app:actualImageScaleType="6" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0" 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="16dp" android:layout_marginStart="16dp" app:cardBackgroundColor="?attr/colorBackgroundTertiary" app:cardCornerRadius="20dp" app:cardElevation="0dp" app:contentPadding="4dp" app:layout_constraintBottom_toBottomOf="@+id/guild_profile_sheet_banner" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_profile_sheet_banner">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/guild_profile_sheet_icon" android:layout_width="match_parent" android:layout_height="match_parent" app:roundWithOverlayColor="?attr/colorBackgroundTertiary" app:roundedCornerRadius="16dp"/>
<TextView android:textColor="@color/primary_100" android:ellipsize="none" android:layout_gravity="center" android:id="@+id/guild_profile_sheet_icon_name" android:padding="4dp" style="@style/res_2131952569_uikit_textview_large_singleline"/>
</androidx.cardview.widget.CardView>
<LinearLayout android:id="@+id/guild_profile_sheet_content_container" android:paddingBottom="16dp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:paddingStart="16dp" android:paddingEnd="16dp" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_profile_sheet_icon_card" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout style="@style/res_2131952594_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="24dp" android:layout_height="24dp" android:importantForAccessibility="no" android:layout_marginEnd="8dp"/>
<TextView android:textSize="@dimen/uikit_textsize_xxlarge" android:id="@+id/guild_profile_sheet_name" style="@style/res_2131952564_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="8dp" style="@style/res_2131952561_uikit_textview"/>
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_marginTop="8dp" style="@style/res_2131952594_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="8dp" android:layout_height="8dp" android:layout_marginEnd="8dp" app:placeholderImage="@color/status_green_600" app:roundAsCircle="true"/>
<TextView android:id="@+id/guild_profile_sheet_online_count_text" android:layout_marginEnd="16dp" style="@style/res_2131952019_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="8dp" android:layout_height="8dp" android:layout_marginEnd="8dp" app:placeholderImage="@color/status_grey_500" app:roundAsCircle="true"/>
<TextView android:id="@+id/guild_profile_sheet_member_count_text" style="@style/res_2131952019_guildprofilesheet_discoverableguild_text"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View android:id="@+id/guild_profile_sheet_content_container_bottom_divider" android:background="?attr/colorBackgroundModifierAccent" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_profile_sheet_content_container" style="@style/res_2131952422_uikit_divider"/>
<LinearLayout android:id="@+id/guild_profile_sheet_tab_items" android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_profile_sheet_content_container_bottom_divider" style="@style/res_2131952594_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" style="@style/res_2131952021_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" style="@style/res_2131952021_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" style="@style/res_2131952021_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" style="@style/res_2131952021_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="3" 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="?attr/colorBackgroundSecondary" android:paddingBottom="16dp" android:layout_width="0dp" android:paddingStart="16dp" android:paddingEnd="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_profile_sheet_actions_top_barrier" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout android:id="@+id/guild_profile_sheet_actions" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<androidx.cardview.widget.CardView android:id="@+id/guild_profile_sheet_mark_as_read_action" android:layout_marginTop="16dp" style="@style/res_2131952016_guildprofilesheet_actions_card">
<TextView android:id="@+id/guild_profile_sheet_mark_as_read" android:padding="16dp" android:text="@string/mark_as_read" style="@style/res_2131952018_guildprofilesheet_actions_title"/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView android:id="@+id/guild_profile_sheet_primary_actions" android:layout_marginTop="16dp" style="@style/res_2131952016_guildprofilesheet_actions_card">
<LinearLayout style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:id="@+id/guild_profile_sheet_create_channel" android:padding="16dp" android:text="@string/create_channel" style="@style/res_2131952018_guildprofilesheet_actions_title"/>
<TextView android:id="@+id/guild_profile_sheet_create_category" android:padding="16dp" android:text="@string/create_category" style="@style/res_2131952018_guildprofilesheet_actions_title"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView android:id="@+id/guild_profile_sheet_secondary_actions" android:layout_marginTop="16dp" style="@style/res_2131952016_guildprofilesheet_actions_card">
<LinearLayout style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout android:id="@+id/guild_profile_sheet_change_nickname" android:background="?attr/bg_pressed_highlight" android:padding="16dp" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:textAppearance="@style/res_2131952539_uikit_textappearance_semibold" android:textSize="@dimen/uikit_textsize_large" android:layout_gravity="center" android:layout_width="match_parent" android:text="@string/change_nickname" style="@style/res_2131952561_uikit_textview"/>
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorTextMuted" android:layout_gravity="center" android:id="@+id/guild_profile_sheet_nickname" android:layout_width="match_parent" style="@style/res_2131952561_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/res_2131952017_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/res_2131952017_guildprofilesheet_actions_checkedsetting"/>
<TextView android:textColor="@color/status_red_500" android:id="@+id/guild_profile_sheet_leave_server" android:padding="16dp" android:text="@string/leave_server" style="@style/res_2131952018_guildprofilesheet_actions_title"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView android:id="@+id/guild_profile_sheet_developer_actions" android:layout_marginTop="16dp" style="@style/res_2131952016_guildprofilesheet_actions_card">
<TextView android:id="@+id/guild_profile_sheet_copy_id" android:padding="16dp" android:text="@string/copy_id" style="@style/res_2131952018_guildprofilesheet_actions_title"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" style="@style/res_2131952594_uikit_viewgroup_linearlayout_horizontal">
<TextView android:textAppearance="@style/res_2131952532_uikit_textappearance_bold" android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/guild_profile_sheet_emojis_count" android:textAllCaps="true" style="@style/res_2131952561_uikit_textview"/>
<ImageView android:id="@+id/guild_profile_sheet_premium_upsell_dot_separator" android:layout_width="4dp" android:layout_height="4dp" android:src="@drawable/drawable_circle_white" android:importantForAccessibility="no" android:layout_marginStart="8dp" app:tint="?attr/colorTextMuted"/>
<TextView android:textAppearance="@style/res_2131952539_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="4dp" android:layout_marginStart="8dp" app:drawableStartCompat="@drawable/ic_nitro_badge_nitro_gradient_16dp" style="@style/res_2131952578_uikit_textview_singleline"/>
</LinearLayout>
<androidx.cardview.widget.CardView android:id="@+id/guild_profile_sheet_emojis_card" android:layout_marginTop="8dp" app:contentPadding="8dp" style="@style/res_2131952016_guildprofilesheet_actions_card">
<androidx.recyclerview.widget.RecyclerView android:id="@+id/guild_profile_sheet_emojis" android:layout_width="match_parent" android:layout_height="wrap_content" app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"/>
</androidx.cardview.widget.CardView>
<LinearLayout android:id="@+id/guild_profile_sheet_bottom_actions" android:layout_marginTop="16dp" style="@style/res_2131952594_uikit_viewgroup_linearlayout_horizontal">
<com.google.android.material.button.MaterialButton android:id="@+id/guild_profile_sheet_upload_emoji" android:layout_width="0dp" android:text="@string/upload_emoji" android:layout_weight="1" style="@style/res_2131952456_uikit_material_button"/>
<com.google.android.material.button.MaterialButton android:id="@+id/guild_profile_sheet_join_server" android:layout_width="0dp" android:text="@string/guild_profile_join_server_button" android:layout_weight="1" android:layout_marginStart="8dp" style="@style/res_2131952456_uikit_material_button"/>
<com.google.android.material.button.MaterialButton android:id="@+id/guild_profile_sheet_view_server" android:layout_width="0dp" android:text="@string/guild_popout_view_server_button" android:layout_weight="1" android:layout_marginStart="8dp" android:backgroundTint="?attr/colorBackgroundAccent" style="@style/res_2131952456_uikit_material_button"/>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.discord.app.AppViewFlipper>
</androidx.core.widget.NestedScrollView>