discord-jadx/app/src/main/res/layout/widget_guild_profile_action...

49 lines
8.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/guild_profile_sheet_bottom_container" 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/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="16dp" style="@style/GuildProfileSheet_Actions_Card">
<TextView android:id="@+id/guild_profile_sheet_mark_as_read" android:padding="16dp" 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="16dp" style="@style/GuildProfileSheet_Actions_Card">
<LinearLayout style="@style/UiKit_ViewGroup_LinearLayout">
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/guild_profile_sheet_create_event" android:background="?attr/bg_pressed_highlight" android:layout_width="match_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/UiKit_TextAppearance_Semibold" android:textSize="@dimen/uikit_textsize_large" android:id="@+id/guild_profile_sheet_create_event_label" android:padding="16dp" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@string/schedule_event" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
<TextView android:id="@+id/guild_profile_sheet_create_event_new" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="16dp" app:layout_constraintBaseline_toBaselineOf="@+id/guild_profile_sheet_create_event_label" app:layout_constraintEnd_toEndOf="0" style="@style/UiKit_TextView_NewBadge"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView android:id="@+id/guild_profile_sheet_create_channel" android:padding="16dp" android:text="@string/create_channel" style="@style/GuildProfileSheet_Actions_Title"/>
<TextView android:id="@+id/guild_profile_sheet_create_category" android:padding="16dp" 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="16dp" style="@style/GuildProfileSheet_Actions_Card">
<LinearLayout style="@style/UiKit_ViewGroup_LinearLayout">
<LinearLayout android:id="@+id/change_identity" android:background="?attr/bg_pressed_highlight" android:padding="16dp" style="@style/UiKit_ViewGroup_LinearLayout">
<TextView android:textAppearance="@style/UiKit_TextAppearance_Semibold" android:textSize="@dimen/uikit_textsize_large" android:layout_gravity="center" android:id="@+id/change_identity_header" android:layout_width="match_parent" android:text="@string/change_identity" style="@style/UiKit_TextView"/>
<LinearLayout android:gravity="center_vertical" android:id="@+id/per_guild_identity_container" android:layout_marginTop="4dp" style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/guild_profile_sheet_guild_avatar" android:layout_marginEnd="4dp" app:placeholderImage="?attr/asset_default_avatar_32dp" app:roundWithOverlayColor="?attr/colorBackgroundPrimary" style="@style/Avatar_ProfileSmall"/>
<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/UiKit_TextView"/>
</LinearLayout>
</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="16dp" 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="16dp" style="@style/GuildProfileSheet_Actions_Card">
<TextView android:id="@+id/guild_profile_sheet_copy_id" android:padding="16dp" android:text="@string/copy_id" style="@style/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/UiKit_ViewGroup_LinearLayout_Horizontal">
<TextView android:textAppearance="@style/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/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/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/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/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/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/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/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/UiKit_Material_Button"/>
</LinearLayout>
</LinearLayout>