| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 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 | |
| 4 found in the LICENSE file. --> | |
| 5 | |
| 6 <!-- The toolbar containing the URL bar, back button, and NTP button. | |
| 7 --> | |
| 8 | |
| 9 <org.chromium.chrome.browser.toolbar.ToolbarTablet | |
| 10 xmlns:android="http://schemas.android.com/apk/res/android" | |
| 11 android:layout_width="match_parent" | |
| 12 android:layout_height="@dimen/toolbar_height_no_shadow" | |
| 13 android:layout_marginTop="@dimen/tab_strip_height" | |
| 14 android:background="@color/default_primary_color" | |
| 15 android:paddingStart="@dimen/tablet_toolbar_start_padding" > | |
| 16 | |
| 17 <LinearLayout | |
| 18 android:layout_width="match_parent" | |
| 19 android:layout_height="match_parent" | |
| 20 android:orientation="horizontal" > | |
| 21 | |
| 22 <org.chromium.chrome.browser.toolbar.HomePageButton | |
| 23 android:id="@+id/home_button" | |
| 24 style="@style/ToolbarButton" | |
| 25 android:src="@drawable/btn_toolbar_home" | |
| 26 android:contentDescription="@string/accessibility_toolbar_btn_home" | |
| 27 android:visibility="gone" /> | |
| 28 | |
| 29 <org.chromium.chrome.browser.widget.TintedImageButton | |
| 30 android:id="@+id/back_button" | |
| 31 style="@style/ToolbarButton" | |
| 32 android:src="@drawable/btn_back" | |
| 33 android:contentDescription="@string/accessibility_toolbar_btn_back"
/> | |
| 34 | |
| 35 <org.chromium.chrome.browser.widget.TintedImageButton | |
| 36 android:id="@+id/forward_button" | |
| 37 style="@style/ToolbarButton" | |
| 38 android:src="@drawable/btn_forward" | |
| 39 android:contentDescription="@string/accessibility_toolbar_btn_forwar
d" /> | |
| 40 | |
| 41 <org.chromium.chrome.browser.widget.TintedImageButton | |
| 42 android:id="@+id/refresh_button" | |
| 43 style="@style/ToolbarButton" | |
| 44 android:src="@drawable/btn_toolbar_reload" | |
| 45 android:contentDescription="@string/accessibility_btn_refresh" /> | |
| 46 | |
| 47 <org.chromium.chrome.browser.omnibox.LocationBarTablet | |
| 48 android:id="@+id/location_bar" | |
| 49 android:layout_width="0dp" | |
| 50 android:layout_height="match_parent" | |
| 51 android:layout_marginBottom="5dp" | |
| 52 android:layout_marginTop="5dp" | |
| 53 android:layout_weight="1" | |
| 54 android:layout_gravity="top|center" | |
| 55 android:background="@drawable/textbox" | |
| 56 android:paddingEnd="1dp" | |
| 57 android:paddingStart="2dp" /> | |
| 58 | |
| 59 <ImageButton | |
| 60 android:id="@+id/tab_switcher_button" | |
| 61 style="@style/ToolbarButton" | |
| 62 android:contentDescription="@string/accessibility_toolbar_btn_tabswi
tcher_toggle_default" | |
| 63 android:visibility="gone" /> | |
| 64 | |
| 65 <FrameLayout | |
| 66 android:layout_width="wrap_content" | |
| 67 android:layout_height="wrap_content" | |
| 68 android:id="@+id/menu_button_wrapper" > | |
| 69 | |
| 70 <org.chromium.chrome.browser.widget.TintedImageButton | |
| 71 android:id="@+id/menu_button" | |
| 72 style="@style/ToolbarMenuButtonTablet" | |
| 73 android:src="@drawable/btn_menu" | |
| 74 android:contentDescription="@string/accessibility_toolbar_btn_me
nu" /> | |
| 75 | |
| 76 <ImageView | |
| 77 android:id="@+id/menu_badge" | |
| 78 style="@style/ToolbarMenuButtonTablet" | |
| 79 android:src="@drawable/badge_update_dark" | |
| 80 android:contentDescription="@null" | |
| 81 android:importantForAccessibility="no" | |
| 82 android:visibility="invisible" /> | |
| 83 | |
| 84 </FrameLayout> | |
| 85 </LinearLayout> | |
| 86 </org.chromium.chrome.browser.toolbar.ToolbarTablet> | |
| OLD | NEW |