|
43 | 43 | android:layout_height="wrap_content"
|
44 | 44 | android:orientation="vertical">
|
45 | 45 |
|
46 |
| - <EditText |
47 |
| - android:id="@+id/multi_reddit_name_edit_text_create_multi_reddit_activity" |
| 46 | + <com.google.android.material.card.MaterialCardView |
| 47 | + android:id="@+id/input_card_view_create_multi_reddit_activity" |
| 48 | + style="?attr/materialCardViewFilledStyle" |
48 | 49 | android:layout_width="match_parent"
|
49 | 50 | android:layout_height="wrap_content"
|
50 |
| - android:padding="16dp" |
51 |
| - android:hint="@string/multi_reddit_name_hint" |
52 |
| - android:inputType="textMultiLine" |
53 |
| - android:textSize="?attr/font_default" |
54 |
| - android:background="#00000000" |
55 |
| - android:textColor="?attr/primaryTextColor" |
56 |
| - android:fontFamily="?attr/font_family" |
57 |
| - android:maxLength="50" /> |
58 |
| - |
59 |
| - <View |
60 |
| - android:id="@+id/divider_1_create_multi_reddit_activity" |
61 |
| - android:layout_width="match_parent" |
62 |
| - android:layout_height="1dp" /> |
| 51 | + android:layout_marginTop="16dp" |
| 52 | + android:layout_marginStart="16dp" |
| 53 | + android:layout_marginEnd="16dp" |
| 54 | + app:cardCornerRadius="12dp"> |
63 | 55 |
|
64 |
| - <EditText |
65 |
| - android:id="@+id/description_edit_text_create_multi_reddit_activity" |
| 56 | + <LinearLayout |
| 57 | + android:layout_width="match_parent" |
| 58 | + android:layout_height="wrap_content" |
| 59 | + android:orientation="vertical"> |
| 60 | + |
| 61 | + <TextView |
| 62 | + android:id="@+id/multi_reddit_name_explanation_text_input_layout_create_multi_reddit_activity" |
| 63 | + android:layout_width="match_parent" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:paddingTop="16dp" |
| 66 | + android:paddingBottom="8dp" |
| 67 | + android:paddingStart="16dp" |
| 68 | + android:paddingEnd="16dp" |
| 69 | + android:text="@string/multi_reddit_name_explanation" |
| 70 | + android:textSize="?attr/font_default" |
| 71 | + android:textColor="?attr/primaryTextColor" |
| 72 | + android:fontFamily="?attr/font_family" /> |
| 73 | + |
| 74 | + <com.google.android.material.textfield.TextInputLayout |
| 75 | + android:id="@+id/multi_reddit_name_text_input_layout_create_multi_reddit_activity" |
| 76 | + android:layout_width="match_parent" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + android:paddingTop="8dp" |
| 79 | + android:paddingBottom="8dp" |
| 80 | + android:paddingStart="16dp" |
| 81 | + android:paddingEnd="16dp" |
| 82 | + style="@style/Widget.Material3.TextInputLayout.OutlinedBox"> |
| 83 | + |
| 84 | + <com.google.android.material.textfield.TextInputEditText |
| 85 | + android:id="@+id/multi_reddit_name_edit_text_create_multi_reddit_activity" |
| 86 | + android:layout_width="match_parent" |
| 87 | + android:layout_height="wrap_content" |
| 88 | + android:padding="16dp" |
| 89 | + android:hint="@string/multi_reddit_name_hint" |
| 90 | + android:inputType="textMultiLine" |
| 91 | + android:textSize="?attr/font_default" |
| 92 | + android:fontFamily="?attr/font_family" |
| 93 | + android:maxLength="50" /> |
| 94 | + |
| 95 | + </com.google.android.material.textfield.TextInputLayout> |
| 96 | + |
| 97 | + <com.google.android.material.textfield.TextInputLayout |
| 98 | + android:id="@+id/description_text_input_layout_create_multi_reddit_activity" |
| 99 | + android:layout_width="match_parent" |
| 100 | + android:layout_height="wrap_content" |
| 101 | + android:paddingTop="8dp" |
| 102 | + android:paddingBottom="16dp" |
| 103 | + android:paddingStart="16dp" |
| 104 | + android:paddingEnd="16dp" |
| 105 | + style="@style/Widget.Material3.TextInputLayout.OutlinedBox"> |
| 106 | + |
| 107 | + <com.google.android.material.textfield.TextInputEditText |
| 108 | + android:id="@+id/description_edit_text_create_multi_reddit_activity" |
| 109 | + android:layout_width="match_parent" |
| 110 | + android:layout_height="wrap_content" |
| 111 | + android:padding="16dp" |
| 112 | + android:hint="@string/multi_reddit_description_hint" |
| 113 | + android:inputType="textMultiLine" |
| 114 | + android:textSize="?attr/font_default" |
| 115 | + android:fontFamily="?attr/font_family" /> |
| 116 | + |
| 117 | + </com.google.android.material.textfield.TextInputLayout> |
| 118 | + |
| 119 | + </LinearLayout> |
| 120 | + |
| 121 | + </com.google.android.material.card.MaterialCardView> |
| 122 | + |
| 123 | + <com.google.android.material.chip.ChipGroup |
66 | 124 | android:layout_width="match_parent"
|
67 | 125 | android:layout_height="wrap_content"
|
68 | 126 | android:padding="16dp"
|
69 |
| - android:hint="@string/multi_reddit_description_hint" |
70 |
| - android:inputType="textMultiLine" |
71 |
| - android:textSize="?attr/font_default" |
72 |
| - android:background="#00000000" |
73 |
| - android:textColor="?attr/primaryTextColor" |
74 |
| - android:fontFamily="?attr/font_family" /> |
| 127 | + app:chipSpacingHorizontal="16dp"> |
75 | 128 |
|
76 |
| - <View |
77 |
| - android:id="@+id/divider_2_create_multi_reddit_activity" |
78 |
| - android:layout_width="match_parent" |
79 |
| - android:layout_height="1dp"/> |
| 129 | + <com.google.android.material.chip.Chip |
| 130 | + android:id="@+id/select_subreddit_chip_create_multi_reddit_activity" |
| 131 | + android:layout_width="wrap_content" |
| 132 | + android:layout_height="wrap_content" |
| 133 | + android:text="@string/select_subreddits_and_users" |
| 134 | + android:textSize="?attr/font_default" |
| 135 | + android:fontFamily="?attr/font_family" |
| 136 | + style="@style/Widget.Material3.Chip.Assist" /> |
80 | 137 |
|
81 |
| - <LinearLayout |
| 138 | + <com.google.android.material.chip.Chip |
| 139 | + android:id="@+id/visibility_chip_create_multi_reddit_activity" |
| 140 | + android:layout_width="wrap_content" |
| 141 | + android:layout_height="wrap_content" |
| 142 | + android:text="@string/private_multi_reddit" |
| 143 | + android:textSize="?attr/font_default" |
| 144 | + android:fontFamily="?attr/font_family" |
| 145 | + android:checked="true" |
| 146 | + style="@style/Widget.Material3.Chip.Filter" /> |
| 147 | + |
| 148 | + </com.google.android.material.chip.ChipGroup> |
| 149 | + |
| 150 | + <!--<LinearLayout |
82 | 151 | android:id="@+id/visibility_wrapper_linear_layout_create_multi_reddit_activity"
|
83 | 152 | android:layout_width="match_parent"
|
84 | 153 | android:layout_height="wrap_content"
|
85 |
| - android:padding="16dp" |
| 154 | + android:paddingStart="16dp" |
| 155 | + android:paddingEnd="16dp" |
86 | 156 | android:clickable="true"
|
87 | 157 | android:focusable="true"
|
88 | 158 | android:background="?attr/selectableItemBackground">
|
|
94 | 164 | android:layout_weight="1"
|
95 | 165 | android:text="@string/private_multi_reddit"
|
96 | 166 | android:textSize="?attr/font_default"
|
97 |
| - android:textColor="?attr/primaryTextColor" |
98 | 167 | android:fontFamily="?attr/font_family" />
|
99 | 168 |
|
100 |
| - <Switch |
| 169 | + <com.google.android.material.materialswitch.MaterialSwitch |
101 | 170 | android:id="@+id/visibility_switch_create_multi_reddit_activity"
|
102 | 171 | android:layout_width="wrap_content"
|
103 | 172 | android:layout_height="wrap_content"
|
|
112 | 181 | android:padding="16dp"
|
113 | 182 | android:text="@string/select_subreddits_and_users"
|
114 | 183 | android:textSize="?attr/font_default"
|
115 |
| - android:textColor="?attr/primaryTextColor" |
116 | 184 | android:fontFamily="?attr/font_family"
|
117 | 185 | android:clickable="true"
|
118 | 186 | android:focusable="true"
|
119 |
| - android:background="?attr/selectableItemBackground" /> |
| 187 | + android:background="?attr/selectableItemBackground" />--> |
120 | 188 |
|
121 | 189 | </LinearLayout>
|
122 | 190 |
|
|
0 commit comments