|
7 | 7 | android:layout_marginVertical="8dp"
|
8 | 8 | app:elevation="6dp">
|
9 | 9 |
|
10 |
| - <androidx.constraintlayout.widget.ConstraintLayout |
| 10 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 11 | + android:layout_width="match_parent" |
| 12 | + android:layout_height="match_parent" |
| 13 | + android:layout_marginHorizontal="20dp" |
| 14 | + android:layout_marginVertical="20dp"> |
| 15 | + |
| 16 | + <ImageView |
| 17 | + android:id="@+id/btn_remove" |
| 18 | + android:layout_width="24dp" |
| 19 | + android:layout_height="wrap_content" |
| 20 | + android:contentDescription="@string/remove" |
| 21 | + android:visibility="visible" |
| 22 | + app:layout_constraintEnd_toEndOf="parent" |
| 23 | + app:layout_constraintTop_toTopOf="parent" |
| 24 | + app:srcCompat="@drawable/ic_remove" /> |
| 25 | + |
| 26 | + <TextView |
| 27 | + android:id="@+id/description_languages" |
| 28 | + android:layout_width="wrap_content" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:clickable="true" |
| 31 | + android:drawableRight="@drawable/ic_baseline_arrow_drop_down_24" |
| 32 | + android:padding="@dimen/dimen_2" |
| 33 | + android:textSize="18sp" |
| 34 | + app:layout_constraintStart_toStartOf="parent" |
| 35 | + app:layout_constraintTop_toTopOf="parent" /> |
| 36 | + |
| 37 | + <com.google.android.material.textfield.TextInputLayout |
| 38 | + android:id="@+id/caption_item_edit_text_input_layout" |
11 | 39 | android:layout_width="match_parent"
|
12 |
| - android:layout_height="match_parent" |
13 |
| - android:layout_marginHorizontal="20dp" |
14 |
| - android:layout_marginVertical="20dp"> |
| 40 | + android:layout_height="wrap_content" |
| 41 | + android:layout_marginTop="4dp" |
| 42 | + app:layout_constraintEnd_toEndOf="parent" |
| 43 | + app:layout_constraintStart_toStartOf="parent" |
| 44 | + app:layout_constraintTop_toBottomOf="@+id/description_languages"> |
| 45 | + |
| 46 | + <fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText |
| 47 | + android:id="@+id/caption_item_edit_text" |
| 48 | + android:layout_width="match_parent" |
| 49 | + android:layout_height="match_parent" |
| 50 | + android:hint="@string/share_caption_hint" |
| 51 | + android:imeOptions="actionNext|flagNoExtractUi" |
| 52 | + android:inputType="text" |
| 53 | + app:allowFormatting="false" /> |
| 54 | + </com.google.android.material.textfield.TextInputLayout> |
15 | 55 |
|
16 |
| - <ImageView |
17 |
| - android:id="@+id/btn_remove" |
18 |
| - android:layout_width="24dp" |
19 |
| - android:layout_height="wrap_content" |
20 |
| - android:contentDescription="@string/remove" |
21 |
| - android:visibility="visible" |
22 |
| - app:layout_constraintBottom_toTopOf="@+id/caption_item_edit_text_input_layout" |
23 |
| - app:layout_constraintEnd_toEndOf="parent" |
24 |
| - app:srcCompat="@drawable/ic_remove" /> |
| 56 | + <LinearLayout |
| 57 | + android:id="@+id/ll_write_better_caption" |
| 58 | + android:layout_width="wrap_content" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:layout_marginStart="2dp" |
| 61 | + android:background="@drawable/clicked_linearlayout_background" |
| 62 | + android:clickable="true" |
| 63 | + android:gravity="center_vertical" |
| 64 | + app:layout_constraintStart_toStartOf="parent" |
| 65 | + app:layout_constraintTop_toBottomOf="@+id/caption_item_edit_text_input_layout"> |
25 | 66 |
|
26 |
| - <TextView |
27 |
| - android:id="@+id/description_languages" |
28 |
| - android:layout_width="wrap_content" |
29 |
| - android:layout_height="wrap_content" |
30 |
| - android:clickable="true" |
31 |
| - android:drawableRight="@drawable/ic_baseline_arrow_drop_down_24" |
32 |
| - android:padding="@dimen/dimen_2" |
33 |
| - android:textSize="18sp" |
34 |
| - app:layout_constraintBottom_toTopOf="@+id/caption_item_edit_text_input_layout" |
35 |
| - app:layout_constraintStart_toStartOf="parent" /> |
| 67 | + <TextView |
| 68 | + android:layout_width="wrap_content" |
| 69 | + android:layout_height="wrap_content" |
| 70 | + android:text="@string/learn_how_to_write_a_useful_caption" |
| 71 | + android:textSize="12sp" /> |
36 | 72 |
|
37 |
| - <com.google.android.material.textfield.TextInputLayout |
38 |
| - android:id="@+id/caption_item_edit_text_input_layout" |
39 |
| - android:layout_width="match_parent" |
40 |
| - android:layout_height="wrap_content" |
41 |
| - app:layout_constraintBottom_toTopOf="@id/description_item_edit_text_input_layout" |
42 |
| - app:layout_constraintEnd_toEndOf="parent" |
43 |
| - app:layout_constraintStart_toStartOf="parent"> |
| 73 | + <ImageView |
| 74 | + android:layout_width="10dp" |
| 75 | + android:layout_height="10dp" |
| 76 | + android:layout_marginStart="6dp" |
| 77 | + app:srcCompat="@drawable/ic_open" /> |
| 78 | + |
| 79 | + </LinearLayout> |
| 80 | + |
| 81 | + <com.google.android.material.textfield.TextInputLayout |
| 82 | + android:id="@+id/description_item_edit_text_input_layout" |
| 83 | + android:layout_width="match_parent" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:layout_marginTop="4dp" |
| 86 | + app:layout_constraintEnd_toEndOf="parent" |
| 87 | + app:layout_constraintStart_toStartOf="parent" |
| 88 | + app:layout_constraintTop_toBottomOf="@+id/ll_write_better_caption"> |
44 | 89 |
|
45 |
| - <fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText |
46 |
| - android:id="@+id/caption_item_edit_text" |
47 |
| - android:layout_width="match_parent" |
48 |
| - android:layout_height="match_parent" |
49 |
| - android:hint="@string/share_caption_hint" |
50 |
| - android:imeOptions="actionNext|flagNoExtractUi" |
51 |
| - android:inputType="text" |
52 |
| - app:allowFormatting="false" /> |
53 |
| - </com.google.android.material.textfield.TextInputLayout> |
| 90 | + <fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText |
| 91 | + android:id="@+id/description_item_edit_text" |
| 92 | + android:layout_width="match_parent" |
| 93 | + android:layout_height="match_parent" |
| 94 | + android:hint="@string/share_description_hint" |
| 95 | + android:imeOptions="actionNext|flagNoExtractUi" |
| 96 | + android:inputType="textMultiLine" |
| 97 | + app:allowFormatting="false" /> |
| 98 | + </com.google.android.material.textfield.TextInputLayout> |
54 | 99 |
|
55 |
| - <com.google.android.material.textfield.TextInputLayout |
56 |
| - android:id="@+id/description_item_edit_text_input_layout" |
57 |
| - android:layout_width="match_parent" |
58 |
| - android:layout_height="wrap_content" |
59 |
| - app:layout_constraintBottom_toBottomOf="parent" |
60 |
| - app:layout_constraintEnd_toEndOf="parent" |
61 |
| - app:layout_constraintStart_toStartOf="parent"> |
| 100 | + <LinearLayout |
| 101 | + android:id="@+id/ll_write_better_description" |
| 102 | + android:layout_width="wrap_content" |
| 103 | + android:layout_height="wrap_content" |
| 104 | + android:layout_marginStart="2dp" |
| 105 | + android:background="@drawable/clicked_linearlayout_background" |
| 106 | + android:clickable="true" |
| 107 | + android:gravity="center_vertical" |
| 108 | + app:layout_constraintStart_toStartOf="parent" |
| 109 | + app:layout_constraintTop_toBottomOf="@+id/description_item_edit_text_input_layout"> |
62 | 110 |
|
63 |
| - <fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText |
64 |
| - android:id="@+id/description_item_edit_text" |
65 |
| - android:layout_width="match_parent" |
66 |
| - android:layout_height="match_parent" |
67 |
| - android:hint="@string/share_description_hint" |
68 |
| - android:imeOptions="actionNext|flagNoExtractUi" |
69 |
| - android:inputType="textMultiLine" |
70 |
| - app:allowFormatting="false" /> |
71 |
| - </com.google.android.material.textfield.TextInputLayout> |
| 111 | + <TextView |
| 112 | + android:layout_width="wrap_content" |
| 113 | + android:layout_height="wrap_content" |
| 114 | + android:text="@string/learn_how_to_write_a_useful_description" |
| 115 | + android:textSize="12sp" /> |
72 | 116 |
|
73 |
| - </androidx.constraintlayout.widget.ConstraintLayout> |
| 117 | + <ImageView |
| 118 | + android:layout_width="10dp" |
| 119 | + android:layout_height="10dp" |
| 120 | + android:layout_marginStart="6dp" |
| 121 | + app:srcCompat="@drawable/ic_open" /> |
| 122 | + </LinearLayout> |
| 123 | + </androidx.constraintlayout.widget.ConstraintLayout> |
74 | 124 | </androidx.cardview.widget.CardView>
|
0 commit comments