|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<com.google.android.material.card.MaterialCardView |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 4 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 5 | xmlns:tools="http://schemas.android.com/tools" |
5 | 6 | android:layout_width="match_parent" |
6 | | - android:layout_height="48dp" |
7 | | - android:layout_marginHorizontal="16dp" |
8 | | - android:layout_marginVertical="12dp" |
9 | | - app:cardBackgroundColor="?attr/colorSecondary" |
10 | | - app:cardCornerRadius="8dp" |
11 | | - app:cardElevation="0dp" |
| 7 | + android:layout_height="@dimen/main_search_box_height" |
| 8 | + android:layout_marginHorizontal="@dimen/layout_margin_16dp" |
| 9 | + android:layout_marginVertical="@dimen/layout_margin_12dp" |
| 10 | + app:cardBackgroundColor="?attr/colorSurface" |
| 11 | + app:cardCornerRadius="@dimen/card_corner_radius_default" |
| 12 | + app:cardElevation="@dimen/card_default_stroke_width" |
12 | 13 | app:layout_constraintStart_toStartOf="parent" |
13 | 14 | app:layout_constraintTop_toTopOf="parent" |
14 | 15 | tools:showIn="@layout/fragment_home"> |
|
19 | 20 |
|
20 | 21 | <ImageView |
21 | 22 | android:id="@+id/app_logo" |
22 | | - android:layout_width="28dp" |
23 | | - android:layout_height="28dp" |
24 | | - android:layout_marginStart="16dp" |
| 23 | + android:layout_width="@dimen/search_box_logo_size" |
| 24 | + android:layout_height="@dimen/search_box_logo_size" |
| 25 | + android:layout_marginStart="@dimen/layout_margin_16dp" |
25 | 26 | android:src="@drawable/ic_logo" |
26 | 27 | app:layout_constraintBottom_toBottomOf="parent" |
27 | 28 | app:layout_constraintStart_toStartOf="parent" |
|
32 | 33 | android:id="@+id/search_title_text_view" |
33 | 34 | android:layout_width="wrap_content" |
34 | 35 | android:layout_height="wrap_content" |
35 | | - android:layout_marginStart="20dp" |
36 | | - android:layout_marginTop="4dp" |
| 36 | + android:layout_marginStart="@dimen/margin_layout_20dp" |
| 37 | + android:layout_marginTop="@dimen/layout_margin_4dp" |
37 | 38 | android:alpha="0.5" |
38 | 39 | android:text="@string/search_header_title" |
39 | 40 | android:textAppearance="?attr/textAppearanceHeadline6" |
40 | | - android:textColor="?attr/colorOnSecondary" |
| 41 | + android:textColor="?attr/colorOnSurface" |
41 | 42 | app:layout_constraintBottom_toBottomOf="@id/app_logo" |
42 | 43 | app:layout_constraintStart_toEndOf="@id/app_logo" |
43 | 44 | app:layout_constraintTop_toTopOf="@id/app_logo" /> |
|
46 | 47 | android:id="@+id/search_icon_image_view" |
47 | 48 | android:layout_width="wrap_content" |
48 | 49 | android:layout_height="wrap_content" |
49 | | - android:layout_marginEnd="16dp" |
| 50 | + android:layout_marginEnd="@dimen/layout_margin_16dp" |
50 | 51 | android:alpha="0.8" |
51 | 52 | android:src="@drawable/ic_search" |
52 | 53 | app:layout_constraintBottom_toBottomOf="parent" |
53 | 54 | app:layout_constraintEnd_toEndOf="parent" |
54 | 55 | app:layout_constraintTop_toTopOf="parent" |
55 | | - app:tint="?attr/colorOnSecondary" |
| 56 | + app:tint="?attr/colorOnSurface" |
56 | 57 | tools:ignore="ContentDescription" /> |
57 | 58 |
|
58 | 59 | </androidx.constraintlayout.widget.ConstraintLayout> |
|
0 commit comments