OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <!-- The toolbar containing the URL bar, back button, and NTP button. | 6 <!-- The toolbar containing the URL bar, back button, and NTP button. |
7 --> | 7 --> |
8 | 8 |
9 <org.chromium.chrome.browser.toolbar.ToolbarPhone | 9 <org.chromium.chrome.browser.toolbar.ToolbarPhone |
10 xmlns:android="http://schemas.android.com/apk/res/android" | 10 xmlns:android="http://schemas.android.com/apk/res/android" |
11 xmlns:chrome="http://schemas.android.com/apk/res-auto" | 11 xmlns:chrome="http://schemas.android.com/apk/res-auto" |
12 android:layout_width="match_parent" | 12 android:layout_width="match_parent" |
13 android:layout_height="@dimen/toolbar_height_no_shadow" > | 13 android:layout_height="@dimen/toolbar_height_no_shadow" > |
14 | 14 |
15 <org.chromium.chrome.browser.widget.newtab.NewTabButton | 15 <org.chromium.chrome.browser.widget.newtab.NewTabButton |
16 android:id="@+id/new_tab_button" | 16 android:id="@+id/new_tab_button" |
17 style="@style/ToolbarButton" | 17 style="@style/ToolbarButton" |
18 android:layout_width="wrap_content" | 18 android:layout_width="wrap_content" |
19 android:layout_gravity="start|top" | 19 android:layout_gravity="start|top" |
20 android:paddingStart="16dp" | 20 android:paddingStart="16dp" |
21 android:paddingEnd="16dp" | 21 android:paddingEnd="16dp" |
22 android:visibility="invisible" | 22 android:visibility="invisible" |
23 android:background="?attr/selectableItemBackground" | 23 android:background="?attr/selectableItemBackground" |
24 android:contentDescription="@string/accessibility_toolbar_btn_new_tab" | 24 android:contentDescription="@string/accessibility_toolbar_btn_new_tab" /
> |
25 /> | |
26 | 25 |
27 <org.chromium.chrome.browser.toolbar.HomePageButton | 26 <org.chromium.chrome.browser.toolbar.HomePageButton |
28 android:id="@+id/home_button" | 27 android:id="@+id/home_button" |
29 style="@style/ToolbarButton" | 28 style="@style/ToolbarButton" |
30 android:src="@drawable/btn_toolbar_home" | 29 android:src="@drawable/btn_toolbar_home" |
31 android:contentDescription="@string/accessibility_toolbar_btn_home" | 30 android:contentDescription="@string/accessibility_toolbar_btn_home" |
32 android:visibility="gone" /> | 31 android:visibility="gone" /> |
33 | 32 |
34 <org.chromium.chrome.browser.omnibox.LocationBarPhone android:id="@+id/locat
ion_bar" | 33 <org.chromium.chrome.browser.omnibox.LocationBarPhone |
| 34 android:id="@+id/location_bar" |
35 android:layout_width="match_parent" | 35 android:layout_width="match_parent" |
36 android:layout_height="match_parent" | 36 android:layout_height="match_parent" |
37 android:layout_gravity="top" | 37 android:layout_gravity="top" /> |
38 /> | 38 |
39 <LinearLayout android:id="@+id/toolbar_buttons" | 39 <LinearLayout android:id="@+id/toolbar_buttons" |
40 android:orientation="horizontal" | 40 android:orientation="horizontal" |
41 android:layout_width="wrap_content" | 41 android:layout_width="wrap_content" |
42 android:layout_height="wrap_content" | 42 android:layout_height="wrap_content" |
43 android:layout_gravity="top|end"> | 43 android:layout_gravity="top|end" > |
| 44 |
44 <Space | 45 <Space |
45 android:layout_width="4dp" | 46 android:layout_width="4dp" |
46 android:layout_height="match_parent" /> | 47 android:layout_height="match_parent" /> |
| 48 |
47 <ImageButton android:id="@+id/tab_switcher_button" | 49 <ImageButton android:id="@+id/tab_switcher_button" |
48 style="@style/ToolbarButton" | 50 style="@style/ToolbarButton" |
49 android:layout_gravity="top" | 51 android:layout_gravity="top" |
50 android:contentDescription="@string/accessibility_toolbar_btn_tabswi
tcher_toggle" /> | 52 android:contentDescription="@string/accessibility_toolbar_btn_tabswi
tcher_toggle" /> |
51 <org.chromium.chrome.browser.widget.TintedImageButton | 53 |
52 android:id="@+id/menu_button" | 54 <FrameLayout |
53 style="@style/ToolbarButton" | 55 android:layout_width="wrap_content" |
54 android:layout_gravity="top" | 56 android:layout_height="wrap_content" |
55 android:layout_width="42dp" | 57 android:id="@+id/menu_button_wrapper" > |
56 android:paddingEnd="4dp" | 58 |
57 android:src="@drawable/btn_menu" | 59 <org.chromium.chrome.browser.widget.TintedImageButton |
58 android:contentDescription="@string/accessibility_toolbar_btn_menu" | 60 android:id="@+id/menu_button" |
59 android:background="@null" /> | 61 style="@style/ToolbarButton" |
| 62 android:layout_gravity="top" |
| 63 android:layout_width="42dp" |
| 64 android:paddingEnd="4dp" |
| 65 android:src="@drawable/btn_menu" |
| 66 android:contentDescription="@string/accessibility_toolbar_btn_me
nu" |
| 67 android:background="@null" /> |
| 68 |
| 69 <ImageView |
| 70 android:id="@+id/menu_badge" |
| 71 style="@style/UpdateMenuBadge" |
| 72 android:src="@drawable/badge_update" |
| 73 android:layout_marginEnd="8.5dp" |
| 74 android:contentDescription="@null" /> |
| 75 </FrameLayout> |
60 </LinearLayout> | 76 </LinearLayout> |
| 77 |
61 <org.chromium.chrome.browser.widget.ToolbarProgressBar | 78 <org.chromium.chrome.browser.widget.ToolbarProgressBar |
62 android:id="@+id/progress" | 79 android:id="@+id/progress" |
63 android:layout_width="match_parent" | 80 android:layout_width="match_parent" |
64 android:layout_height="2dp" | 81 android:layout_height="2dp" |
65 chrome:progressBarColor="@color/progress_bar_foreground" | 82 chrome:progressBarColor="@color/progress_bar_foreground" |
66 chrome:backgroundColor="@color/progress_bar_background" /> | 83 chrome:backgroundColor="@color/progress_bar_background" /> |
| 84 |
67 </org.chromium.chrome.browser.toolbar.ToolbarPhone> | 85 </org.chromium.chrome.browser.toolbar.ToolbarPhone> |
OLD | NEW |