blob: 69017c7105d438ac3ad3e059243bd5386a7ded16 [file] [log] [blame]
John Reck0f602f32011-07-07 15:38:43 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright 2011, The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
Enrico Ros1f5a0952014-11-18 20:15:48 -080017<com.android.browser.NavigationBarTablet xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:background="@color/NavigationBarBackground"
21 android:orientation="horizontal">
22
Michael Kolbde463762011-07-14 15:25:45 -070023 <LinearLayout
24 android:id="@+id/navbuttons"
John Reck0f602f32011-07-07 15:38:43 -070025 android:layout_width="wrap_content"
John Reck5fc96f52011-07-18 10:00:46 -070026 android:layout_height="match_parent"
Michael Kolbde463762011-07-14 15:25:45 -070027 android:orientation="horizontal">
Enrico Ros1f5a0952014-11-18 20:15:48 -080028
Michael Kolbde463762011-07-14 15:25:45 -070029 <ImageButton
30 android:id="@+id/back"
Enrico Ros1f5a0952014-11-18 20:15:48 -080031 style="@style/NavButton"
Michael Kolbde463762011-07-14 15:25:45 -070032 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -070033 android:contentDescription="@string/accessibility_button_back"
Enrico Ros1f5a0952014-11-18 20:15:48 -080034 android:src="@drawable/ic_action_history_backward" />
35
Michael Kolbde463762011-07-14 15:25:45 -070036 <ImageButton
37 android:id="@+id/forward"
Enrico Ros1f5a0952014-11-18 20:15:48 -080038 style="@style/NavButton"
Michael Kolbde463762011-07-14 15:25:45 -070039 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -070040 android:contentDescription="@string/accessibility_button_forward"
Enrico Ros1f5a0952014-11-18 20:15:48 -080041 android:src="@drawable/ic_action_history_forward" />
42
Michael Kolbde463762011-07-14 15:25:45 -070043 </LinearLayout>
Enrico Ros1f5a0952014-11-18 20:15:48 -080044
Pankaj Garg66f8cef2015-07-07 17:29:03 -070045 <!-- Stop/Refresh button -->
46 <ImageButton
47 android:id="@+id/stop"
48 style="@style/NavButton"
49 android:layout_width="wrap_content"
50 android:contentDescription="@string/accessibility_button_stop"
51 android:gravity="center_vertical" />
52
John Reck0f602f32011-07-07 15:38:43 -070053 <LinearLayout
54 android:id="@+id/urlbar_focused"
55 android:layout_width="0dip"
56 android:layout_height="match_parent"
57 android:layout_weight="1.0"
Enrico Ros1f5a0952014-11-18 20:15:48 -080058 android:orientation="horizontal">
59
John Reck0f602f32011-07-07 15:38:43 -070060 <ImageView
Pankaj Garg66f8cef2015-07-07 17:29:03 -070061 android:id="@+id/magnify"
62 android:layout_width="44dp"
63 android:layout_height="match_parent"
64 android:src="@drawable/ic_action_search_normal"
Michael Kolbbae0cb22012-05-29 11:15:27 -070065 android:layout_gravity="center_vertical"
Pankaj Garg66f8cef2015-07-07 17:29:03 -070066 android:paddingStart="6dp"
67 android:paddingEnd="6dp"
68 android:visibility="visible" />
69
70 <com.android.browser.SiteTileView
71 android:id="@+id/favicon_view"
72 android:layout_width="44dp"
73 android:layout_height="44dp"
74 android:layout_gravity="center_vertical"
75 android:paddingStart="6dp"
76 android:paddingEnd="6dp"
77 android:contentDescription="@string/page_info"/>
Enrico Ros1f5a0952014-11-18 20:15:48 -080078
jrizzolidd494bf2015-10-11 22:04:40 +020079 <!-- Cosmetic separator -->
80 <View
81 android:id="@+id/separator"
82 android:layout_width="1dp"
83 android:layout_height="36dp"
84 android:paddingTop="6dp"
85 android:paddingBottom="6dp"
86 android:paddingStart="4dp"
87 android:paddingEnd="4dp"
88 android:background="@color/icon_white" />
89
Bijan Amirzada41242f22014-03-21 12:12:18 -070090 <com.android.browser.UrlInputView
John Reck0f602f32011-07-07 15:38:43 -070091 android:id="@+id/url"
Enrico Ros1f5a0952014-11-18 20:15:48 -080092 style="@style/Suggestions"
John Reck0f602f32011-07-07 15:38:43 -070093 android:layout_width="0dip"
John Reck0f602f32011-07-07 15:38:43 -070094 android:layout_height="match_parent"
Enrico Ros1f5a0952014-11-18 20:15:48 -080095 android:layout_weight="1.0"
96 android:background="@null"
97 android:ellipsize="end"
98 android:hint="@string/search_hint"
99 android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
100 android:inputType="textUri"
101 android:lines="1"
Vivek Sekhared791da2015-02-22 12:39:05 -0800102 android:paddingStart="4dip"
103 android:paddingEnd="0dip"
John Reck0f602f32011-07-07 15:38:43 -0700104 android:scrollHorizontally="true"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800105 android:singleLine="true"
106 android:textAppearance="?android:attr/textAppearanceMedium" />
107
John Reck0f602f32011-07-07 15:38:43 -0700108 <ImageButton
109 android:id="@+id/star"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800110 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -0700111 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -0700112 android:contentDescription="@string/accessibility_button_addbookmark"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800113 android:src="@drawable/ic_action_bookmark" />
114
John Reck0f602f32011-07-07 15:38:43 -0700115 <ImageButton
116 android:id="@+id/clear"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800117 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -0700118 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -0700119 android:contentDescription="@string/accessibility_button_clear"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800120 android:src="@drawable/ic_action_stop" />
121
Michael Kolb0b129122012-06-04 16:31:58 -0700122 <ImageButton
123 android:id="@+id/voice"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800124 style="@style/NavButton"
Michael Kolb0b129122012-06-04 16:31:58 -0700125 android:layout_width="wrap_content"
Michael Kolb0b129122012-06-04 16:31:58 -0700126 android:contentDescription="@string/accessibility_button_voice"
Enrico Rosd6efa972014-12-02 19:49:59 -0800127 android:src="@drawable/ic_action_microphone_normal" />
Enrico Ros1f5a0952014-11-18 20:15:48 -0800128 </LinearLayout>
129
John Reck0f602f32011-07-07 15:38:43 -0700130 <ImageButton
John Reck0f602f32011-07-07 15:38:43 -0700131 android:id="@+id/search"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800132 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -0700133 android:layout_width="wrap_content"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800134 android:contentDescription="@string/accessibility_button_search"
John Reck0f602f32011-07-07 15:38:43 -0700135 android:gravity="center_vertical"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800136 android:src="@drawable/ic_action_search_normal" />
137
John Reck0f602f32011-07-07 15:38:43 -0700138 <ImageButton
139 android:id="@+id/all_btn"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800140 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -0700141 android:layout_width="wrap_content"
Sagar Dhawan53b2ba72015-08-05 15:58:20 -0700142 android:contentDescription="@string/bookmarks"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800143 android:scaleType="center"
Enrico Rosd6efa972014-12-02 19:49:59 -0800144 android:src="@drawable/ic_deco_bookmarks_normal" />
Enrico Ros1f5a0952014-11-18 20:15:48 -0800145
146 <ImageButton
147 android:id="@+id/more_browser_settings"
148 style="@style/OverflowButton" />
Bijan Amirzada41242f22014-03-21 12:12:18 -0700149</com.android.browser.NavigationBarTablet>