discord-jadx/app/src/main/res/layout/widget_chat_list_adapter_item_gift.xml
2021-11-25 09:24:35 +01:00

22 lines
4.7 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:id="@+id/item_listen_together_container" style="@style/UiKit_Chat_Embed_Container">
<FrameLayout android:layout_width="match_parent" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="@+id/item_gift_image" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/item_gift_image_background" android:layout_width="match_parent" android:layout_height="match_parent" android:alpha="0.1" app:actualImageScaleType="4"/>
<View android:background="?attr/gift_embed_gradient_overlay" android:layout_width="match_parent" android:layout_height="match_parent"/>
</FrameLayout>
<TextView android:id="@+id/item_gift_header" android:text="@string/invite_button_resolving" style="@style/UiKit_Chat_Embed_Header"/>
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/item_gift_image" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" android:layout_marginStart="16dp" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/item_gift_header" app:placeholderImage="?attr/ic_game_icon_placeholder" style="@style/Icon_Game"/>
<LinearLayout android:id="@+id/item_gift_details" android:layout_width="0dp" android:layout_marginTop="8dp" android:minHeight="50dp" android:layout_marginEnd="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintLeft_toRightOf="@+id/item_gift_image" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/item_gift_image" app:layout_constraintTop_toBottomOf="@+id/item_gift_header" style="@style/UiKit_ViewGroup_LinearLayout">
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/primary_100" android:id="@+id/item_gift_name" android:minWidth="150dp" android:layout_marginStart="8dp" android:layout_marginEnd="16dp" style="@style/UiKit_TextView_Marquee"/>
<TextView android:id="@+id/item_gift_expires" android:layout_marginTop="4dp" android:singleLine="true" android:layout_marginStart="8dp" android:layout_marginEnd="16dp" style="@style/UiKit_Chat_Embed_Subtext"/>
</LinearLayout>
<androidx.constraintlayout.widget.Barrier android:id="@+id/barrier" android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="3" app:constraint_referenced_ids="item_gift_image,item_gift_details"/>
<TextView android:id="@+id/item_gift_subtext" android:layout_width="0dp" android:layout_marginTop="8dp" android:layout_marginEnd="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintLeft_toLeftOf="@+id/item_gift_image" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toStartOf="@+id/item_gift_image" app:layout_constraintTop_toBottomOf="@+id/barrier" style="@style/UiKit_Chat_Embed_Subtext"/>
<FrameLayout android:id="@+id/buttonsContainer" android:paddingBottom="8dp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" android:layout_marginBottom="8dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/item_gift_subtext">
<com.google.android.material.button.MaterialButton android:id="@+id/item_gift_cannot_claim_button" android:visibility="gone" android:text="@string/gift_embed_button_claimed" style="@style/UiKit_GiftEmbedDisabledButton"/>
<com.google.android.material.button.MaterialButton android:id="@+id/item_gift_accept_button" android:visibility="gone" android:text="@string/gift_embed_button_accept" style="@style/UiKit_Material_Button_Green"/>
<com.google.android.material.button.MaterialButton android:id="@+id/item_gift_open_button" android:visibility="gone" android:text="@string/gift_embed_button_open" style="@style/UiKit_Material_Button"/>
<com.google.android.material.button.MaterialButton android:id="@+id/item_gift_verify_button" android:visibility="gone" android:text="@string/verify_account" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/item_gift_subtext" style="@style/UiKit_Material_Button"/>
<View android:id="@+id/item_gift_loading_button_placeholder" android:background="@drawable/drawable_empty_text_placeholder_dark" android:visibility="gone" android:layout_height="36dp" android:layout_marginTop="6dp" style="@style/UiKit_ViewGroup"/>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>