|
11 | 11 | android:layout_height="wrap_content" |
12 | 12 | android:background="?attr/colorPrimary"> |
13 | 13 |
|
14 | | - <android.support.v7.widget.CardView |
15 | | - android:id="@+id/toolbar_box" |
| 14 | + <FrameLayout |
16 | 15 | android:layout_width="match_parent" |
17 | 16 | android:layout_height="wrap_content" |
18 | | - android:layout_marginTop="8dp" |
19 | | - android:layout_marginBottom="8dp" |
20 | | - android:layout_marginStart="8dp" |
21 | | - android:layout_marginEnd="8dp" |
22 | | - app:cardBackgroundColor="@color/toolbar_box_background" |
| 17 | + android:background="?attr/colorPrimary" |
23 | 18 | app:layout_scrollFlags="enterAlways|scroll"> |
24 | 19 |
|
25 | | - <android.support.v7.widget.Toolbar |
| 20 | + <android.support.v7.widget.CardView |
| 21 | + android:id="@+id/toolbar_box" |
26 | 22 | android:layout_width="match_parent" |
27 | | - android:layout_height="48dp" |
28 | | - android:id="@+id/toolbar" |
29 | | - android:foreground="?attr/selectableItemBackground" |
30 | | - android:clickable="true" |
31 | | - app:theme="@style/Toolbar.Main" |
32 | | - app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> |
33 | | - |
34 | | - <ImageView |
35 | | - android:id="@+id/action_start_search" |
36 | | - android:layout_width="wrap_content" |
37 | 23 | android:layout_height="wrap_content" |
38 | | - android:layout_marginEnd="24dp" |
39 | | - android:src="@drawable/ic_search_black_24dp" |
40 | | - android:tint="@color/black_in_light"/> |
| 24 | + android:layout_marginTop="8dp" |
| 25 | + android:layout_marginBottom="8dp" |
| 26 | + android:layout_marginStart="8dp" |
| 27 | + android:layout_marginEnd="8dp" |
| 28 | + app:cardBackgroundColor="@color/toolbar_box_background"> |
41 | 29 |
|
42 | | - <TextView |
43 | | - android:layout_width="match_parent" |
44 | | - android:layout_height="match_parent" |
45 | | - android:id="@+id/search_edit" |
46 | | - android:text="@string/search_hint_common" |
47 | | - android:gravity="center_vertical" |
48 | | - android:background="@null" |
49 | | - android:textColor="?android:textColorHint" |
50 | | - android:textSize="16sp" |
51 | | - android:textAppearance="@style/TextAppearance.AppCompat.Body2"/> |
| 30 | + <android.support.v7.widget.Toolbar |
| 31 | + android:layout_width="match_parent" |
| 32 | + android:layout_height="48dp" |
| 33 | + android:id="@+id/toolbar" |
| 34 | + android:foreground="?attr/selectableItemBackground" |
| 35 | + android:clickable="true" |
| 36 | + app:theme="@style/Toolbar.Main" |
| 37 | + app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> |
| 38 | + |
| 39 | + <ImageView |
| 40 | + android:id="@+id/action_start_search" |
| 41 | + android:layout_width="wrap_content" |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:layout_marginEnd="24dp" |
| 44 | + android:src="@drawable/ic_search_black_24dp" |
| 45 | + android:tint="@color/black_in_light"/> |
| 46 | + |
| 47 | + <TextView |
| 48 | + android:layout_width="match_parent" |
| 49 | + android:layout_height="match_parent" |
| 50 | + android:id="@+id/search_edit" |
| 51 | + android:text="@string/search_hint_common" |
| 52 | + android:gravity="center_vertical" |
| 53 | + android:background="@null" |
| 54 | + android:textColor="?android:textColorHint" |
| 55 | + android:textSize="16sp" |
| 56 | + android:textAppearance="@style/TextAppearance.AppCompat.Body2"/> |
| 57 | + |
| 58 | + </android.support.v7.widget.Toolbar> |
52 | 59 |
|
53 | | - </android.support.v7.widget.Toolbar> |
| 60 | + </android.support.v7.widget.CardView> |
54 | 61 |
|
55 | | - </android.support.v7.widget.CardView> |
| 62 | + </FrameLayout> |
56 | 63 |
|
57 | 64 | <android.support.design.widget.TabLayout |
58 | 65 | android:layout_width="match_parent" |
|
0 commit comments