discord-jadx/app/src/main/res/layout-v22/widget_attachment_bottom_sh...

18 lines
5.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/widget_sheet_component_bottom_sheet_header" android:background="?attr/colorBackgroundTertiary" android:paddingBottom="32dp" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/attachment_preview" android:layout_width="match_parent" android:layout_height="0dp" android:layout_margin="16dp" app:actualImageScaleType="2" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
<FrameLayout android:id="@+id/attachment_spoiler_cover" android:visibility="visible" android:layout_width="0dp" android:layout_height="0dp" android:elevation="@dimen/app_elevation" app:layout_constraintBottom_toBottomOf="@+id/attachment_preview" app:layout_constraintEnd_toEndOf="@+id/attachment_preview" app:layout_constraintStart_toStartOf="@+id/attachment_preview" app:layout_constraintTop_toTopOf="@+id/attachment_preview">
<View android:id="@+id/attachment_spoiler_cover_bg" android:background="?attr/primary_700" android:visibility="visible" android:layout_width="match_parent" android:layout_height="match_parent" android:alpha="0.8" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
<androidx.cardview.widget.CardView android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" app:cardBackgroundColor="@color/black_alpha_60" app:cardCornerRadius="16dp" app:cardElevation="@dimen/app_elevation">
<TextView android:textColor="@color/primary_200" android:layout_gravity="center" android:paddingLeft="8dp" android:paddingTop="4dp" android:paddingRight="8dp" android:paddingBottom="4dp" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:text="@string/spoiler" android:textAllCaps="true" style="@style/UiKit_TextView_H2"/>
</androidx.cardview.widget.CardView>
</FrameLayout>
<androidx.appcompat.widget.AppCompatTextView android:gravity="end" android:id="@+id/attachment_filename" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingBottom="4dp" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="16dp" android:paddingHorizontal="16dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/attachment_preview" style="@style/UiKit_TextView_Subtext"/>
<androidx.appcompat.widget.AppCompatCheckedTextView android:id="@+id/attachment_mark_spoiler" android:background="?attr/selectableItemBackground" android:padding="16dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:checked="true" android:text="@string/spoiler_mark_selected" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/attachment_filename" style="@style/UiKit_TextAppearance_Button"/>
<com.google.android.material.checkbox.MaterialCheckBox android:id="@+id/attachment_mark_spoiler_checkbox" android:background="@android:color/transparent" android:focusable="false" android:visibility="visible" android:clickable="false" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_marginEnd="16dp" android:buttonTint="?attr/colorCompoundButton" app:layout_constraintBottom_toBottomOf="@+id/attachment_mark_spoiler" app:layout_constraintEnd_toEndOf="0" app:layout_constraintTop_toTopOf="@+id/attachment_mark_spoiler"/>
<androidx.appcompat.widget.AppCompatTextView android:textColor="?attr/colorTextDanger" android:id="@+id/attachment_remove_item" android:background="?attr/selectableItemBackground" android:padding="16dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/remove_file" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/attachment_mark_spoiler" style="@style/UiKit_TextAppearance_Button"/>
<com.google.android.material.textview.MaterialTextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorInteractiveActive" android:id="@+id/attachment_duration" android:background="@drawable/rounded_rectangle_4dp_radius" android:paddingLeft="8dp" android:paddingTop="4dp" android:paddingRight="8dp" android:paddingBottom="4dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="8dp" android:text="@string/video" android:backgroundTint="?attr/colorBackgroundTertiary" android:paddingHorizontal="8dp" android:paddingVertical="4dp" app:layout_constraintBottom_toBottomOf="@+id/attachment_preview" app:layout_constraintEnd_toEndOf="0" style="@style/UiKit_TextView_Bold"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>