|
165 | 165 |
|
166 | 166 | </LinearLayout> |
167 | 167 |
|
| 168 | + <LinearLayout |
| 169 | + android:id="@+id/low_light_boost_setting" |
| 170 | + android:layout_width="match_parent" |
| 171 | + android:layout_height="wrap_content" |
| 172 | + android:background="?android:attr/selectableItemBackground" |
| 173 | + android:clickable="true" |
| 174 | + android:focusable="true" |
| 175 | + android:orientation="horizontal" |
| 176 | + android:paddingTop="8dp" |
| 177 | + android:paddingHorizontal="16dp" |
| 178 | + android:paddingBottom="10dp" |
| 179 | + android:visibility="gone"> |
| 180 | + |
| 181 | + <ImageView |
| 182 | + android:id="@+id/low_light_boost_icon" |
| 183 | + android:layout_width="48dp" |
| 184 | + android:layout_height="48dp" |
| 185 | + android:contentDescription="@string/low_light_boost" |
| 186 | + android:paddingStart="4dp" |
| 187 | + android:paddingEnd="8dp" |
| 188 | + android:src="@drawable/low_light_boost" /> |
| 189 | + |
| 190 | + <LinearLayout |
| 191 | + android:layout_width="0dp" |
| 192 | + android:layout_height="wrap_content" |
| 193 | + android:layout_marginHorizontal="4dp" |
| 194 | + android:layout_weight="1" |
| 195 | + android:orientation="vertical"> |
| 196 | + |
| 197 | + <TextView |
| 198 | + android:id="@+id/low_light_boost_setting_title" |
| 199 | + android:layout_width="wrap_content" |
| 200 | + android:layout_height="wrap_content" |
| 201 | + android:layout_marginStart="10dp" |
| 202 | + android:paddingBottom="2dp" |
| 203 | + android:text="@string/low_light_boost" |
| 204 | + android:textColor="?android:textColorPrimary" |
| 205 | + android:textSize="16sp" /> |
| 206 | + |
| 207 | + <TextView |
| 208 | + android:id="@+id/low_light_boost_setting_description" |
| 209 | + android:layout_width="wrap_content" |
| 210 | + android:layout_height="wrap_content" |
| 211 | + android:paddingStart="10dp" |
| 212 | + android:text="@string/low_light_boost_description" |
| 213 | + android:textSize="14sp" |
| 214 | + tools:ignore="RtlSymmetry" /> |
| 215 | + |
| 216 | + </LinearLayout> |
| 217 | + |
| 218 | + <com.google.android.material.materialswitch.MaterialSwitch |
| 219 | + android:id="@+id/low_light_boost_toggle" |
| 220 | + android:layout_width="wrap_content" |
| 221 | + android:layout_height="wrap_content" |
| 222 | + android:layout_gravity="end|center_vertical" |
| 223 | + android:layout_marginEnd="0dp" /> |
| 224 | + |
| 225 | + </LinearLayout> |
| 226 | + |
168 | 227 | </LinearLayout> |
169 | 228 |
|
170 | 229 | <LinearLayout |
|
0 commit comments