|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + |
| 3 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="wrap_content" |
| 7 | + android:layout_marginHorizontal="8dp" |
| 8 | + android:layout_marginVertical="8dp" |
| 9 | + app:elevation="6dp"> |
| 10 | + |
| 11 | + <androidx.constraintlayout.widget.ConstraintLayout |
3 | 12 | android:layout_width="match_parent"
|
4 |
| - android:layout_height="wrap_content" |
5 |
| - android:orientation="horizontal" |
6 |
| - android:weightSum="8"> |
7 |
| - |
8 |
| - <androidx.appcompat.widget.AppCompatSpinner |
9 |
| - android:id="@+id/spinner_description_languages" |
10 |
| - android:layout_width="wrap_content" |
11 |
| - android:layout_height="wrap_content" |
12 |
| - android:layout_weight="0" |
13 |
| - android:minWidth="@dimen/tiny_height" |
14 |
| - android:padding="@dimen/dimen_0" |
15 |
| - android:spinnerMode="dialog" /> |
16 |
| - <LinearLayout |
17 |
| - android:layout_width="match_parent" |
18 |
| - android:layout_height="wrap_content" |
19 |
| - android:orientation="vertical" |
20 |
| - android:layout_weight="8"> |
| 13 | + android:layout_height="match_parent" |
| 14 | + android:layout_marginHorizontal="20dp" |
| 15 | + android:layout_marginVertical="20dp"> |
| 16 | + |
| 17 | + <ImageView |
| 18 | + android:id="@+id/btn_remove" |
| 19 | + android:layout_width="24dp" |
| 20 | + android:layout_height="wrap_content" |
| 21 | + android:contentDescription="@string/remove" |
| 22 | + android:visibility="visible" |
| 23 | + app:layout_constraintBottom_toTopOf="@+id/caption_item_edit_text_input_layout" |
| 24 | + app:layout_constraintEnd_toEndOf="parent" |
| 25 | + app:srcCompat="@drawable/ic_clear_24dp" /> |
| 26 | + |
| 27 | + <Spinner |
| 28 | + android:id="@+id/spinner_description_languages" |
| 29 | + android:layout_width="wrap_content" |
| 30 | + android:layout_height="wrap_content" |
| 31 | + android:spinnerMode="dialog" |
| 32 | + app:layout_constraintBottom_toTopOf="@+id/caption_item_edit_text_input_layout" |
| 33 | + app:layout_constraintStart_toStartOf="parent" /> |
| 34 | + |
21 | 35 | <com.google.android.material.textfield.TextInputLayout
|
22 |
| - android:id="@+id/caption_item_edit_text_input_layout" |
| 36 | + android:id="@+id/caption_item_edit_text_input_layout" |
| 37 | + android:layout_width="match_parent" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + app:layout_constraintBottom_toTopOf="@id/description_item_edit_text_input_layout" |
| 40 | + app:layout_constraintEnd_toEndOf="parent" |
| 41 | + app:layout_constraintStart_toStartOf="parent"> |
| 42 | + |
| 43 | + <com.google.android.material.textfield.TextInputEditText |
| 44 | + android:id="@+id/caption_item_edit_text" |
23 | 45 | android:layout_width="match_parent"
|
24 |
| - android:layout_height="wrap_content" |
25 |
| - > |
26 |
| - |
27 |
| - <androidx.appcompat.widget.AppCompatEditText |
28 |
| - android:id="@+id/caption_item_edit_text" |
29 |
| - android:layout_width="match_parent" |
30 |
| - android:layout_height="wrap_content" |
31 |
| - android:hint="@string/share_caption_hint" |
32 |
| - android:imeOptions="actionNext|flagNoExtractUi" |
33 |
| - android:inputType="textMultiLine" /> |
| 46 | + android:layout_height="match_parent" |
| 47 | + android:hint="@string/share_caption_hint" |
| 48 | + android:imeOptions="actionNext|flagNoExtractUi" |
| 49 | + android:inputType="textMultiLine" /> |
34 | 50 | </com.google.android.material.textfield.TextInputLayout>
|
35 | 51 |
|
36 | 52 | <com.google.android.material.textfield.TextInputLayout
|
37 |
| - android:id="@+id/description_item_edit_text_input_layout" |
| 53 | + android:id="@+id/description_item_edit_text_input_layout" |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + app:layout_constraintBottom_toBottomOf="parent" |
| 57 | + app:layout_constraintEnd_toEndOf="parent" |
| 58 | + app:layout_constraintStart_toStartOf="parent"> |
| 59 | + |
| 60 | + <com.google.android.material.textfield.TextInputEditText |
| 61 | + android:id="@+id/description_item_edit_text" |
38 | 62 | android:layout_width="match_parent"
|
39 |
| - android:layout_height="wrap_content" |
40 |
| - > |
41 |
| - |
42 |
| - <androidx.appcompat.widget.AppCompatEditText |
43 |
| - android:id="@+id/description_item_edit_text" |
44 |
| - android:layout_width="match_parent" |
45 |
| - android:layout_height="wrap_content" |
46 |
| - android:hint="@string/share_description_hint" |
47 |
| - android:imeOptions="actionNext|flagNoExtractUi" |
48 |
| - android:inputType="textMultiLine" /> |
| 63 | + android:layout_height="match_parent" |
| 64 | + android:hint="@string/share_description_hint" |
| 65 | + android:imeOptions="actionNext|flagNoExtractUi" |
| 66 | + android:inputType="textMultiLine" /> |
49 | 67 | </com.google.android.material.textfield.TextInputLayout>
|
50 | 68 |
|
51 |
| - </LinearLayout> |
52 |
| -</LinearLayout> |
| 69 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 70 | + |
| 71 | +</androidx.cardview.widget.CardView> |
0 commit comments