21 lines
4 KiB
XML
21 lines
4 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" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<TextView android:id="@+id/rich_presence_header" android:text="@string/activity_feed_now_playing_stage_channel" style="@style/UserProfile_Section_Header"/>
|
|
<androidx.cardview.widget.CardView app:cardBackgroundColor="?attr/colorBackgroundPrimary" style="@style/UserProfile_Section_Card">
|
|
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UserProfile_PresenceSection_Body">
|
|
<FrameLayout android:id="@+id/rich_presence_image_large_wrap" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/rich_presence_image_large" android:layout_width="64dp" android:layout_height="64dp" app:placeholderImage="?attr/colorBackgroundSecondary" app:roundedCornerRadius="4dp"/>
|
|
<TextView android:textColor="?attr/colorHeaderPrimary" android:gravity="center" android:id="@+id/rich_presence_image_large_text" android:background="@drawable/drawable_guild_placeholder_primary_500" android:clickable="false" android:layout_width="64dp" android:layout_height="64dp" android:singleLine="true" android:importantForAccessibility="no" style="@style/UiKit_TextView"/>
|
|
</FrameLayout>
|
|
<Space android:id="@+id/image_bottom_guideline" android:layout_width="@dimen/uikit_image_border_size" android:layout_height="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" android:layout_marginStart="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@+id/rich_presence_image_large_wrap" app:layout_constraintStart_toEndOf="@+id/rich_presence_image_large_wrap" app:layout_constraintTop_toBottomOf="@+id/rich_presence_image_large_wrap"/>
|
|
<LinearLayout android:id="@+id/rich_presence_container_data" android:paddingBottom="8dp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_chainStyle="1" app:layout_constraintHorizontal_weight="1" app:layout_constraintLeft_toRightOf="@+id/rich_presence_image_large_wrap" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/rich_presence_image_large_wrap" app:layout_constraintTop_toTopOf="@+id/rich_presence_image_large_wrap" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<TextView android:ellipsize="marquee" android:id="@+id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UserProfile_PresenceSection_Body_HeaderText"/>
|
|
<TextView android:id="@+id/rich_presence_details" style="@style/UserProfile_PresenceSection_Body_Subtext"/>
|
|
<TextView android:id="@+id/rich_presence_time" style="@style/UserProfile_PresenceSection_Body_Subtext"/>
|
|
</LinearLayout>
|
|
<androidx.constraintlayout.widget.Barrier android:id="@+id/barrier" android:layout_width="match_parent" android:layout_height="wrap_content" app:barrierDirection="3" app:constraint_referenced_ids="rich_presence_container_data,rich_presence_image_large_wrap"/>
|
|
<com.google.android.material.button.MaterialButton android:id="@+id/rich_presence_primary_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="@string/stage_channel_join_button" app:layout_constraintEnd_toEndOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/barrier" style="@style/UserProfile_PresenceSection_MaterialButton"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|