summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/compose_attachment_item.xml
blob: 59815a2e0f8a50b6e82bb50a06b26382a825f94c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginVertical="6dp"
    android:layout_marginStart="6dp"
    app:cardElevation="2dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/preview"
            android:layout_width="0dp"
            android:layout_height="100dp"
            android:adjustViewBounds="true"
            android:scaleType="centerCrop"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:src="@tools:sample/backgrounds/scenic" />


         <com.google.android.material.button.MaterialButton
             android:id="@+id/button_play"
             style="@style/Widget.AppCompat.Button.Borderless"
             android:layout_width="48dp"
             android:layout_height="48dp"
             android:adjustViewBounds="true"
             android:padding="0dp"
             app:icon="@drawable/ic_compose_attachment_play"
             app:iconGravity="textStart"
             android:scaleType="fitCenter"
             app:iconPadding="0dp"
             app:layout_constraintBottom_toBottomOf="@id/preview"
             app:layout_constraintEnd_toEndOf="@id/preview"
             app:layout_constraintStart_toStartOf="@id/preview"
             app:layout_constraintTop_toTopOf="@id/preview" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/edit_preview"
            style="@style/Widget.Material3.Button.Icon"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:adjustViewBounds="true"
            android:padding="0dp"
            app:iconGravity="textStart"
            app:iconPadding="0dp"
            android:backgroundTint="@color/editColor"
            app:icon="@drawable/ic_baseline_mode_edit_24"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/button_remove"
            android:padding="0dp"
            app:iconGravity="textStart"
            app:iconPadding="0dp"
            style="@style/Widget.Material3.Button.Icon"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:adjustViewBounds="true"
            android:backgroundTint="@color/errorColor"
            app:icon="@drawable/ic_compose_attachment_remove"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/button_order_up"
            style="@style/Widget.Material3.Button.Icon"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:adjustViewBounds="true"
            app:icon="@drawable/ic_compose_attachment_order_up"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/preview" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/button_description"
            style="@style/Widget.Material3.Button.OutlinedButton"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_marginStart="2dp"
            android:layout_marginEnd="2dp"
            android:text="@string/description"
            android:textAlignment="textStart"
            android:textColor="@color/no_description"
            app:icon="@drawable/ic_baseline_warning_24"
            app:iconTint="@color/no_description"
            app:iconGravity="end"
            app:layout_constraintEnd_toStartOf="@id/button_order_down"
            app:layout_constraintStart_toEndOf="@id/button_order_up"
            app:layout_constraintTop_toBottomOf="@id/preview"
            app:strokeColor="@color/no_description" />


        <com.google.android.material.button.MaterialButton
            android:id="@+id/button_order_down"
            style="@style/Widget.Material3.Button.Icon"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:adjustViewBounds="true"
            app:icon="@drawable/ic_compose_attachment_order_down"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toBottomOf="@id/preview" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</com.google.android.material.card.MaterialCardView>