discord-jadx/app/src/main/res/layout/widget_user_rich_presence.xml

21 lines
4.7 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/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:id="@+id/rich_presence_header" style="@style/res_2131952618_userprofile_section_header"/>
<androidx.cardview.widget.CardView app:cardBackgroundColor="?attr/colorBackgroundPrimary" style="@style/res_2131952617_userprofile_section_card">
<androidx.constraintlayout.widget.ConstraintLayout style="@style/res_2131952612_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_constraintHorizontal_chainStyle="1" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:placeholderImage="?attr/ic_game_icon_placeholder" app:placeholderImageScaleType="2" 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:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" app:layout_constraintEnd_toStartOf="@+id/rich_presence_image_small" 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" app:layout_goneMarginLeft="0dp" app:layout_goneMarginStart="0dp" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:ellipsize="marquee" android:id="@+id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/res_2131952613_userprofile_presencesection_body_headertext"/>
<TextView android:id="@+id/rich_presence_details" style="@style/res_2131952614_userprofile_presencesection_body_subtext"/>
<TextView android:id="@+id/rich_presence_state" style="@style/res_2131952614_userprofile_presencesection_body_subtext"/>
<TextView android:id="@+id/rich_presence_time" style="@style/res_2131952614_userprofile_presencesection_body_subtext"/>
</LinearLayout>
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/rich_presence_image_small" android:visibility="gone" 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:roundAsCircle="true" style="@style/res_2131951679_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"/>
<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="16dp" 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/barrier" style="@style/res_2131952615_userprofile_presencesection_materialbutton"/>
<com.google.android.material.button.MaterialButton android:id="@+id/rich_presence_secondary_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="4dp" 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_primary_button" style="@style/res_2131952615_userprofile_presencesection_materialbutton"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>