23 lines
5.2 KiB
XML
23 lines
5.2 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" 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">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/rich_presence_image_large" android:layout_width="64dp" android:layout_height="64dp" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:placeholderImage="?attr/colorBackgroundSecondary" app:roundedCornerRadius="4dp"/>
|
|
<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" app:layout_constraintStart_toEndOf="@+id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@+id/rich_presence_image_large"/>
|
|
<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_toStartOf="@+id/rich_presence_image_small" app:layout_constraintHorizontal_chainStyle="1" app:layout_constraintHorizontal_weight="1" app:layout_constraintLeft_toRightOf="@+id/rich_presence_image_large" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@+id/rich_presence_image_large" 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>
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/rich_presence_image_small" android:visibility="visible" android:layout_marginBottom="16dp" android:layout_marginStart="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/rich_presence_container_data" app:layout_constraintTop_toTopOf="@+id/rich_presence_image_large" app:placeholderImage="@drawable/ic_spotify_green_24dp" app:roundAsCircle="true" style="@style/Avatar_Medium"/>
|
|
<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,rich_presence_image_small"/>
|
|
<SeekBar android:enabled="false" android:id="@+id/rich_presence_seekbar" android:focusable="false" android:clickable="false" android:layout_height="8dp" android:layout_marginTop="16dp" android:maxHeight="4dp" android:minHeight="4dp" android:paddingStart="0dp" android:paddingEnd="0dp" android:progressTint="?attr/primary_000" android:progressBackgroundTint="?attr/primary_500" android:thumbTint="@color/transparent" 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/UiKit_SeekBar"/>
|
|
<FrameLayout android:id="@+id/rich_presence_music_progress_container" 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/rich_presence_seekbar" style="@style/UiKit_ViewGroup">
|
|
<TextView android:layout_gravity="start" android:id="@+id/rich_presence_music_elapsed" style="@style/UiKit_TextView"/>
|
|
<TextView android:layout_gravity="end" android:id="@+id/rich_presence_music_duration" style="@style/UiKit_TextView"/>
|
|
</FrameLayout>
|
|
<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/user_activity_play_on_platform" 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/rich_presence_music_progress_container" style="@style/UserProfile_PresenceSection_MaterialButton"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|