17 lines
3.3 KiB
XML
17 lines
3.3 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:layout_width="match_parent" android:layout_height="wrap_content">
|
||
|
<TextView android:id="@+id/rich_presence_header" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintTop_toTopOf="0" style="@style/UserProfile_Section_Header"/>
|
||
|
<androidx.cardview.widget.CardView android:layout_width="0dp" android:layout_marginTop="8dp" app:cardBackgroundColor="?attr/colorBackgroundPrimary" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/rich_presence_header" app:layout_constraintWidth_max="400dp" style="@style/UserProfile_Section_Card">
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UiKit_ViewGroup_ConstraintLayout">
|
||
|
<com.discord.views.StreamPreviewView android:id="@+id/stream_preview" android:background="?attr/colorBackgroundTertiary" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintBottom_toTopOf="@+id/rich_presence_container_data" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0" app:layout_constraintVertical_chainStyle="2"/>
|
||
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/rich_presence_image_large" android:layout_width="64dp" android:layout_height="64dp" android:layout_marginBottom="4dp" android:layout_marginStart="4dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintHorizontal_chainStyle="1" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toLeftOf="@+id/rich_presence_container_data" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/rich_presence_container_data" app:placeholderImage="?attr/colorBackgroundSecondary" app:roundedCornerRadius="4dp"/>
|
||
|
<LinearLayout android:id="@+id/rich_presence_container_data" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:layout_marginBottom="4dp" android:layout_marginStart="16dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@+id/stream_preview" 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_state" style="@style/UserProfile_PresenceSection_Body_Subtext"/>
|
||
|
<TextView android:id="@+id/rich_presence_time" style="@style/UserProfile_PresenceSection_Body_Subtext"/>
|
||
|
</LinearLayout>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|