2021-08-09 22:50:52 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-11-01 07:19:03 +00:00
|
|
|
<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="@dimen/attachment_preview_dimen" android:layout_height="@dimen/attachment_preview_dimen">
|
|
|
|
<com.google.android.material.card.MaterialCardView android:background="@color/brand" android:layout_width="0dp" android:layout_height="0dp" android:layout_margin="6dp" android:elevation="0dp" app:cardCornerRadius="4dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent">
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/attachment_item" android:layout_width="0dp" android:layout_height="0dp" android:foreground="?attr/selectableItemBackground" android:adjustViewBounds="true" android:cropToPadding="true" app:fadeDuration="@android:integer/config_shortAnimTime" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:placeholderImage="?attr/ic_flex_input_file" app:roundedCornerRadius="4dp" app:viewAspectRatio="1" style="@style/FlexInput_Items"/>
|
|
|
|
<View android:id="@+id/attachment_spoiler_cover" android:background="?attr/primary_700" android:visibility="gone" android:layout_width="0dp" android:layout_height="0dp" android:alpha="0.8" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/attachment_spoiler_icon" android:visibility="gone" android:layout_width="24dp" android:layout_height="24dp" android:layout_margin="6dp" android:tint="?attr/flexInputIconColorActivated" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:placeholderImage="@drawable/ic_spoiler"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<View android:background="@drawable/bg_circle" android:layout_width="0dp" android:layout_height="0dp" android:layout_margin="1dp" android:elevation="1dp" android:outlineProvider="none" app:layout_constraintBottom_toBottomOf="@+id/attachment_remove" app:layout_constraintEnd_toEndOf="@+id/attachment_remove" app:layout_constraintStart_toStartOf="@+id/attachment_remove" app:layout_constraintTop_toTopOf="@+id/attachment_remove"/>
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/attachment_remove" android:background="@drawable/drawable_circle_transparent" android:padding="4dp" android:visibility="visible" android:elevation="1dp" android:outlineProvider="none" app:layout_constraintEnd_toEndOf="0" app:layout_constraintTop_toTopOf="0" app:placeholderImage="@drawable/ic_delete_circle" style="@style/FlexInput_Items_Photo_Selection_NoOverlayRounding"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|