2019-07-24 11:27:29 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-10-31 00:47:18 +00:00
|
|
|
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout"
|
2019-07-24 11:27:29 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
2019-10-31 00:47:18 +00:00
|
|
|
<TextView android:id="@id/rich_presence_header" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UserProfile.Section.Header" />
|
2019-11-14 21:08:15 +00:00
|
|
|
<androidx.cardview.widget.CardView app:cardBackgroundColor="?primary_600" style="@style/UserProfile.Section.Body.Card">
|
2019-10-31 00:47:18 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.ConstraintLayout">
|
2019-11-10 14:21:47 +00:00
|
|
|
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/start_guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_begin="@dimen/uikit_spacing_large" />
|
2019-10-31 00:47:18 +00:00
|
|
|
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/embed_guideline_right" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_end="@dimen/uikit_spacing_large" />
|
|
|
|
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/stream_preview_placeholder" android:background="@drawable/drawable_bg_stream_preview" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="@id/stream_preview_image" app:layout_constraintLeft_toLeftOf="@id/stream_preview_image" app:layout_constraintRight_toRightOf="@id/stream_preview_image" app:layout_constraintTop_toTopOf="@id/stream_preview_image">
|
|
|
|
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginBottom="@dimen/uikit_spacing_large" android:src="@drawable/img_no_stream_preview" />
|
|
|
|
<TextView android:textColor="?stream_preview_placeholder_color" android:id="@id/stream_preview_placeholder_caption" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stream_preview_loading" style="@style/UiKit.TextView" />
|
|
|
|
</LinearLayout>
|
2019-11-10 14:21:47 +00:00
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/stream_preview_image" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintDimensionRatio="H,16:9" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="parent" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
2019-11-14 21:08:15 +00:00
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginTop="@dimen/uikit_spacing_large" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="@id/start_guideline" app:layout_constraintStart_toStartOf="@id/start_guideline" app:layout_constraintTop_toBottomOf="@id/stream_preview_image" app:placeholderImage="?colorPrimaryDark" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
|
2019-10-31 00:47:18 +00:00
|
|
|
<androidx.legacy.widget.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_marginLeft="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/rich_presence_image_large" />
|
2019-11-14 21:08:15 +00:00
|
|
|
<FrameLayout android:background="?primary_600" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Small" />
|
2019-10-31 00:47:18 +00:00
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:minHeight="80.0dip" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@id/rich_presence_image_large" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
2019-11-10 14:21:47 +00:00
|
|
|
<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_state" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
|
|
|
<TextView android:id="@id/rich_presence_time" style="@style/UserProfile.PresenceSection.Body.Subtext" />
|
2019-10-31 00:47:18 +00:00
|
|
|
</LinearLayout>
|
2019-11-10 14:21:47 +00:00
|
|
|
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_watch_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/watch_stream" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toLeftOf="@id/start_guideline" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toStartOf="@id/start_guideline" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data" style="@style/UserProfile.PresenceSection.MaterialButton" />
|
2019-10-31 00:47:18 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|