|
19 | 19 | <variable |
20 | 20 | name="type" |
21 | 21 | type="PickerMode" /> |
| 22 | + |
| 23 | + <variable |
| 24 | + name="config" |
| 25 | + type="com.mahdiasd.filepicker.FilePicker" /> |
22 | 26 | </data> |
23 | 27 |
|
24 | 28 | <androidx.constraintlayout.widget.ConstraintLayout |
|
31 | 35 | android:layout_width="0dp" |
32 | 36 | android:layout_height="0dp" |
33 | 37 | android:adjustViewBounds="true" |
| 38 | + android:onClick="@{(v) -> presenter.onClick(v , item)}" |
34 | 39 | android:scaleType="centerCrop" |
35 | 40 | app:layout_constraintBottom_toBottomOf="parent" |
36 | 41 | app:layout_constraintDimensionRatio="1" |
37 | 42 | app:layout_constraintLeft_toLeftOf="parent" |
38 | | - android:onClick="@{(v) -> presenter.onClick(v , item)}" |
39 | 43 | app:layout_constraintRight_toRightOf="parent" |
40 | 44 | app:layout_constraintTop_toTopOf="parent" |
41 | 45 | app:shapeAppearanceOverlay="@style/imageViewRadius" /> |
|
45 | 49 | android:layout_height="48dp" |
46 | 50 | android:layout_centerInParent="true" |
47 | 51 | android:elevation="5dp" |
| 52 | + android:onClick="@{(v) -> presenter.onClick(v , item)}" |
48 | 53 | android:src="@drawable/ic_play" |
49 | 54 | android:tint="@color/white" |
50 | | - android:onClick="@{(v) -> presenter.onClick(v , item)}" |
51 | 55 | android:visibility="@{type == PickerMode.Video ? View.VISIBLE : View.GONE , default = gone}" |
52 | 56 | app:layout_constraintBottom_toBottomOf="@id/image" |
53 | 57 | app:layout_constraintLeft_toLeftOf="@id/image" |
54 | 58 | app:layout_constraintRight_toRightOf="@id/image" |
55 | 59 | app:layout_constraintTop_toTopOf="@id/image" /> |
56 | 60 |
|
| 61 | + <ImageView |
| 62 | + android:id="@+id/view" |
| 63 | + android:layout_width="18dp" |
| 64 | + android:layout_height="18dp" |
| 65 | + android:src="@drawable/shape_square" |
| 66 | + android:layout_margin="4dp" |
| 67 | + android:elevation="6dp" |
| 68 | + app:layout_constraintRight_toRightOf="parent" |
| 69 | + app:layout_constraintTop_toTopOf="parent" |
| 70 | + /> |
| 71 | + |
57 | 72 | <com.google.android.material.checkbox.MaterialCheckBox |
58 | 73 | android:id="@+id/checkbox" |
59 | | - android:layout_width="32dp" |
60 | | - android:layout_height="32dp" |
| 74 | + android:layout_width="20dp" |
| 75 | + android:layout_height="20dp" |
61 | 76 | android:checked="@{item.selected}" |
62 | 77 | android:elevation="6dp" |
63 | | - android:gravity="center" |
64 | 78 | android:onClick="@{(v) -> presenter.checkBox(v , item)}" |
65 | | - app:layout_constraintRight_toRightOf="parent" |
66 | | - app:layout_constraintTop_toTopOf="parent" /> |
| 79 | + app:layout_constraintRight_toRightOf="@id/view" |
| 80 | + app:layout_constraintLeft_toLeftOf="@id/view" |
| 81 | + app:layout_constraintBottom_toBottomOf="@id/view" |
| 82 | + app:layout_constraintTop_toTopOf="@id/view" /> |
67 | 83 | </androidx.constraintlayout.widget.ConstraintLayout> |
68 | 84 |
|
69 | 85 |
|
|
0 commit comments