31 lines
10 KiB
XML
31 lines
10 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" android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/UiKit_ViewGroup_Page">
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/root_container" android:layout_width="match_parent" android:layout_height="wrap_content">
|
|
<com.discord.views.segmentedcontrol.SegmentedControlContainer android:id="@+id/segmented_control" android:background="@drawable/drawable_segmented_control_container_bg" android:layout_marginLeft="16dp" android:layout_marginTop="16dp" android:layout_marginRight="16dp" android:layout_marginBottom="16dp" app:layout_constraintLeft_toRightOf="0" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
|
|
<com.discord.views.segmentedcontrol.CardSegment android:id="@+id/segmented_control_event_info" android:text="@string/guild_event_details_info_tab_title" style="@style/SegmentedControlTabCard"/>
|
|
<com.discord.views.segmentedcontrol.CardSegment android:id="@+id/segmented_control_rsvp_list" style="@style/SegmentedControlTabCard"/>
|
|
</com.discord.views.segmentedcontrol.SegmentedControlContainer>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/guild_scheduled_event_rsvp_list_container" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintHeight_min="350dp" app:layout_constraintTop_toBottomOf="@+id/segmented_control">
|
|
<ProgressBar android:layout_gravity="right|center_vertical|center_horizontal|center|end" android:id="@+id/loading_indicator" android:visibility="gone" android:layout_width="40sp" android:layout_height="40sp" android:layout_marginEnd="16dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0"/>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/guild_scheduled_event_empty_or_error_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0">
|
|
<ImageView android:id="@+id/guild_scheduled_event_empty_or_error_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_events_rsvp_list_empty" android:importantForAccessibility="no" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
|
|
<TextView android:textSize="20sp" android:textColor="?attr/colorHeaderPrimary" android:gravity="center" android:id="@+id/guild_scheduled_event_empty_or_error_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="24dp" android:text="@string/guild_event_details_user_list_empty_title" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_empty_or_error_icon" style="@style/UiKit_TextAppearance_Bold"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@+id/guild_scheduled_event_rsvp_list_recycler_view" android:padding="16dp" app:layout_constrainedHeight="true" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_ViewGroup_RecyclerView"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/guild_scheduled_event_info_container" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintTop_toBottomOf="@+id/segmented_control">
|
|
<com.discord.widgets.guildscheduledevent.GuildScheduledEventDateView android:id="@+id/guild_scheduled_event_details_date_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginTop="16dp" android:layout_marginRight="16dp" app:layout_constraintTop_toTopOf="0"/>
|
|
<TextView android:textAppearance="@style/UiKit_TextView_Bold" android:textSize="@dimen/uikit_textsize_xxlarge" android:textColor="?attr/colorHeaderPrimary" android:id="@+id/guild_scheduled_event_details_title_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginTop="16dp" android:layout_marginRight="16dp" android:fontFamily="?attr/font_primary_semibold" app:layout_constraintEnd_toEndOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_date_view"/>
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/guild_scheduled_event_details_guild_icon" android:layout_width="20dp" android:layout_height="20dp" android:layout_marginTop="16dp" android:layout_marginStart="16dp" app:fadeDuration="50" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_title_text" app:roundAsCircle="false" app:roundedCornerRadius="4dp" style="@style/Avatar_Medium"/>
|
|
<TextView android:textAppearance="@style/UiKit_TextAppearance_Semibold" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/guild_scheduled_event_details_guild_name" android:focusable="true" android:clickable="true" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="16dp" app:layout_constraintBottom_toBottomOf="@+id/guild_scheduled_event_details_guild_icon" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/guild_scheduled_event_details_guild_icon" app:layout_constraintTop_toTopOf="@+id/guild_scheduled_event_details_guild_icon"/>
|
|
<ImageView android:id="@+id/guild_scheduled_event_details_channel_icon" android:layout_width="20dp" android:layout_height="20dp" android:layout_marginTop="8dp" android:importantForAccessibility="no" android:layout_marginStart="16dp" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_guild_icon" app:srcCompat="@drawable/ic_stage_20dp" app:tint="?attr/colorHeaderSecondary"/>
|
|
<com.discord.utilities.view.text.LinkifiedTextView android:textAppearance="@style/UiKit_TextAppearance_Semibold" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/guild_scheduled_event_details_channel_name" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="16dp" app:layout_constraintBottom_toBottomOf="@+id/guild_scheduled_event_details_channel_icon" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/guild_scheduled_event_details_channel_icon" app:layout_constraintTop_toTopOf="@+id/guild_scheduled_event_details_channel_icon"/>
|
|
<ImageView android:id="@+id/guild_scheduled_event_details_rsvp_icon" android:layout_width="20dp" android:layout_height="20dp" android:layout_marginTop="8dp" android:importantForAccessibility="no" android:layout_marginStart="16dp" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_channel_icon" app:srcCompat="@drawable/ic_members_24dp" app:tint="?attr/colorHeaderSecondary"/>
|
|
<TextView android:textAppearance="@style/UiKit_TextAppearance_Semibold" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/guild_scheduled_event_details_rsvp_count" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="16dp" app:layout_constraintBottom_toBottomOf="@+id/guild_scheduled_event_details_rsvp_icon" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/guild_scheduled_event_details_rsvp_icon" app:layout_constraintTop_toTopOf="@+id/guild_scheduled_event_details_rsvp_icon"/>
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/guild_scheduled_event_details_creator_avatar" android:layout_width="20dp" android:layout_height="20dp" android:layout_marginTop="8dp" android:layout_marginStart="16dp" app:fadeDuration="50" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_rsvp_icon" app:roundAsCircle="true" style="@style/Avatar_Medium"/>
|
|
<TextView android:textAppearance="@style/UiKit_TextAppearance_Semibold" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/guild_scheduled_event_details_created_by" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="16dp" app:layout_constraintBottom_toBottomOf="@+id/guild_scheduled_event_details_creator_avatar" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/guild_scheduled_event_details_creator_avatar" app:layout_constraintTop_toTopOf="@+id/guild_scheduled_event_details_creator_avatar"/>
|
|
<com.discord.utilities.view.text.LinkifiedTextView android:textAppearance="@style/UiKit_TextView_Semibold" android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/guild_scheduled_event_details_desc_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginTop="16dp" android:layout_marginRight="16dp" android:fontFamily="?attr/font_primary_normal" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_created_by"/>
|
|
<com.discord.widgets.guildscheduledevent.GuildScheduledEventBottomButtonView android:id="@+id/guild_scheduled_event_details_button_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintTop_toBottomOf="@+id/guild_scheduled_event_details_desc_text"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|