12 lines
4.7 KiB
XML
12 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:paddingLeft="12dp" android:paddingTop="8dp" android:paddingRight="12dp" android:paddingBottom="8dp" android:layout_width="match_parent" android:layout_height="wrap_content">
|
|
<ImageView android:id="@+id/live_now_dot" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stage_channel_live_dot" app:layout_constraintBottom_toBottomOf="@+id/live_now_label" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/live_now_label"/>
|
|
<TextView android:textSize="12sp" android:textColor="@color/status_green_600" android:gravity="center_vertical" android:id="@+id/live_now_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stage_channel_live_now" android:textAllCaps="true" android:layout_marginStart="4dp" app:layout_constraintStart_toEndOf="@+id/live_now_dot" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_TextView_Bold"/>
|
|
<TextView android:textSize="16sp" android:textColor="?attr/colorHeaderPrimary" android:gravity="center_vertical" android:id="@+id/event_topic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/live_now_label" style="@style/UiKit_Stage_Topic"/>
|
|
<TextView android:textSize="12sp" android:textColor="?attr/colorHeaderSecondary" android:ellipsize="end" android:gravity="center_vertical" android:id="@+id/event_channel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:lines="1" android:drawablePadding="4dp" app:drawableTint="?attr/colorHeaderSecondary" app:layout_constrainedWidth="true" app:layout_constraintEnd_toStartOf="@+id/channel_separator" app:layout_constraintHorizontal_bias="0" app:layout_constraintHorizontal_chainStyle="2" app:layout_constraintHorizontal_weight="1" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/event_topic" style="@style/UiKit_TextView_Medium"/>
|
|
<ImageView android:id="@+id/channel_separator" android:paddingLeft="8dp" android:paddingRight="8dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stage_channel_info_separator_dot" android:scaleType="centerInside" app:layout_constraintBottom_toBottomOf="@+id/event_channel" app:layout_constraintEnd_toStartOf="@+id/stage_event_listeners" app:layout_constraintStart_toEndOf="@+id/event_channel" app:layout_constraintTop_toTopOf="@+id/event_channel" app:tint="?attr/colorTextMuted"/>
|
|
<TextView android:textSize="12sp" android:textColor="?attr/colorHeaderSecondary" android:gravity="center_vertical" android:id="@+id/stage_event_listeners" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" app:layout_constraintBaseline_toBaselineOf="@+id/event_channel" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toEndOf="@+id/channel_separator" style="@style/UiKit_TextView_Medium"/>
|
|
<com.discord.views.user.UserSummaryView android:id="@+id/user_summary" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" app:layout_constraintEnd_toStartOf="@+id/user_summary_label" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/event_channel" app:summary_avatarOverlap="4dp" app:summary_avatarSize="16dp" app:summary_maxAvatars="3"/>
|
|
<com.google.android.material.textview.MaterialTextView android:textSize="12sp" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/user_summary_label" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:layout_marginStart="4dp" app:layout_constraintBottom_toBottomOf="@+id/user_summary" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/user_summary" app:layout_constraintTop_toBottomOf="@+id/event_channel" app:layout_constraintVertical_bias="0" style="@style/UiKit_TextView_Medium_SingleLine"/>
|
|
<com.google.android.material.button.MaterialButton android:textSize="16sp" android:id="@+id/event_connect_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/user_summary" style="@style/UiKit_Material_Button_Green"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|