|
26 | 26 | android:layout_height="wrap_content" |
27 | 27 | android:fitsSystemWindows="true"> |
28 | 28 |
|
29 | | - <LinearLayout |
| 29 | + <androidx.constraintlayout.widget.ConstraintLayout |
30 | 30 | android:layout_width="match_parent" |
31 | 31 | android:layout_height="wrap_content" |
32 | 32 | android:layout_gravity="center_vertical"> |
33 | 33 | <Button |
34 | | - android:id="@+id/product_logo" |
| 34 | + android:id="@+id/cat_home_button" |
35 | 35 | android:layout_width="48dp" |
36 | 36 | android:layout_height="48dp" |
| 37 | + app:layout_constraintLeft_toLeftOf="parent" |
| 38 | + app:layout_constraintTop_toTopOf="parent" |
| 39 | + app:layout_constraintBottom_toBottomOf="parent" |
| 40 | + android:scaleType="center" |
37 | 41 | android:layout_marginStart="4dp" |
38 | | - android:layout_marginEnd="8dp" |
39 | 42 | android:contentDescription="@string/cat_searchbar_home_icon_description" |
40 | 43 | style="?attr/materialIconButtonStyle" |
41 | | - android:layout_gravity="center_vertical" |
42 | 44 | app:icon="@drawable/ic_home_default_24px"/> |
43 | 45 | <com.google.android.material.search.SearchBar |
44 | 46 | android:id="@+id/cat_search_bar" |
45 | 47 | android:layout_width="0dp" |
46 | 48 | android:layout_height="wrap_content" |
47 | | - android:layout_weight="1" |
| 49 | + app:layout_constraintLeft_toRightOf="@id/cat_home_button" |
| 50 | + app:layout_constraintRight_toLeftOf="@id/cat_cast_button" |
| 51 | + app:layout_constraintTop_toTopOf="parent" |
| 52 | + app:layout_constraintBottom_toBottomOf="parent" |
| 53 | + app:layout_constraintWidth_max="312dp" |
48 | 54 | android:layout_marginVertical="4dp" |
| 55 | + android:layout_marginEnd="8dp" |
| 56 | + android:layout_marginStart="8dp" |
49 | 57 | android:layout_gravity="center_vertical" |
50 | 58 | app:defaultMarginsEnabled="false" |
51 | 59 | android:hint="@string/cat_searchbar_short_hint"/> |
52 | 60 | <Button |
| 61 | + android:id="@+id/cat_cast_button" |
53 | 62 | android:layout_width="48dp" |
54 | 63 | android:layout_height="48dp" |
55 | | - android:layout_marginStart="8dp" |
| 64 | + android:scaleType="center" |
56 | 65 | android:layout_marginEnd="4dp" |
57 | 66 | style="?attr/materialIconButtonStyle" |
| 67 | + app:layout_constraintTop_toTopOf="parent" |
| 68 | + app:layout_constraintBottom_toBottomOf="parent" |
| 69 | + app:layout_constraintRight_toRightOf="parent" |
58 | 70 | android:contentDescription="@string/cat_searchbar_cast_icon_description" |
59 | 71 | android:layout_gravity="center_vertical" |
60 | 72 | app:icon="@drawable/ic_cast_vd_theme_24" /> |
61 | | - </LinearLayout> |
| 73 | + </androidx.constraintlayout.widget.ConstraintLayout> |
62 | 74 |
|
63 | 75 | </com.google.android.material.appbar.AppBarLayout> |
64 | 76 |
|
|
0 commit comments