blob: 5c307352115e1868356c261fa502b2cb56bc1b51 [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"
jrizzoli3f57be02016-01-24 21:06:30 +010034 android:src="@drawable/ic_action_history_backward_inverted" />
Enrico Ros1f5a0952014-11-18 20:15:48 -080035
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"
jrizzoli3f57be02016-01-24 21:06:30 +010041 android:src="@drawable/ic_action_history_forward_inverted" />
Enrico Ros1f5a0952014-11-18 20:15:48 -080042
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
Pankaj Garg66f8cef2015-07-07 17:29:03 -070060 <com.android.browser.SiteTileView
61 android:id="@+id/favicon_view"
62 android:layout_width="44dp"
63 android:layout_height="44dp"
64 android:layout_gravity="center_vertical"
65 android:paddingStart="6dp"
66 android:paddingEnd="6dp"
67 android:contentDescription="@string/page_info"/>
Enrico Ros1f5a0952014-11-18 20:15:48 -080068
jrizzolidd494bf2015-10-11 22:04:40 +020069 <!-- Cosmetic separator -->
70 <View
71 android:id="@+id/separator"
72 android:layout_width="1dp"
jrizzoli3f57be02016-01-24 21:06:30 +010073 android:layout_height="fill_parent"
74 android:paddingTop="8dp"
jrizzolidd494bf2015-10-11 22:04:40 +020075 android:paddingBottom="6dp"
76 android:paddingStart="4dp"
jrizzoli3f57be02016-01-24 21:06:30 +010077 android:paddingEnd="8dp"
jrizzolidd494bf2015-10-11 22:04:40 +020078 android:background="@color/icon_white" />
79
Bijan Amirzada41242f22014-03-21 12:12:18 -070080 <com.android.browser.UrlInputView
John Reck0f602f32011-07-07 15:38:43 -070081 android:id="@+id/url"
Enrico Ros1f5a0952014-11-18 20:15:48 -080082 style="@style/Suggestions"
John Reck0f602f32011-07-07 15:38:43 -070083 android:layout_width="0dip"
John Reck0f602f32011-07-07 15:38:43 -070084 android:layout_height="match_parent"
Enrico Ros1f5a0952014-11-18 20:15:48 -080085 android:layout_weight="1.0"
86 android:background="@null"
87 android:ellipsize="end"
88 android:hint="@string/search_hint"
89 android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
90 android:inputType="textUri"
91 android:lines="1"
Vivek Sekhared791da2015-02-22 12:39:05 -080092 android:paddingStart="4dip"
93 android:paddingEnd="0dip"
John Reck0f602f32011-07-07 15:38:43 -070094 android:scrollHorizontally="true"
Enrico Ros1f5a0952014-11-18 20:15:48 -080095 android:singleLine="true"
jrizzoli3f57be02016-01-24 21:06:30 +010096 android:textColorHint="@color/icon_white"
Enrico Ros1f5a0952014-11-18 20:15:48 -080097 android:textAppearance="?android:attr/textAppearanceMedium" />
98
John Reck0f602f32011-07-07 15:38:43 -070099 <ImageButton
100 android:id="@+id/star"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800101 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -0700102 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -0700103 android:contentDescription="@string/accessibility_button_addbookmark"
jrizzoli3f57be02016-01-24 21:06:30 +0100104 android:src="@drawable/ic_action_bookmark_inverted" />
Enrico Ros1f5a0952014-11-18 20:15:48 -0800105
John Reck0f602f32011-07-07 15:38:43 -0700106 <ImageButton
107 android:id="@+id/clear"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800108 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -0700109 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -0700110 android:contentDescription="@string/accessibility_button_clear"
jrizzoli3f57be02016-01-24 21:06:30 +0100111 android:src="@drawable/ic_action_stop_inverted" />
Enrico Ros1f5a0952014-11-18 20:15:48 -0800112
Michael Kolb0b129122012-06-04 16:31:58 -0700113 <ImageButton
114 android:id="@+id/voice"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800115 style="@style/NavButton"
Michael Kolb0b129122012-06-04 16:31:58 -0700116 android:layout_width="wrap_content"
Michael Kolb0b129122012-06-04 16:31:58 -0700117 android:contentDescription="@string/accessibility_button_voice"
Enrico Rosd6efa972014-12-02 19:49:59 -0800118 android:src="@drawable/ic_action_microphone_normal" />
Enrico Ros1f5a0952014-11-18 20:15:48 -0800119 </LinearLayout>
120
John Reck0f602f32011-07-07 15:38:43 -0700121 <ImageButton
Enrico Ros1f5a0952014-11-18 20:15:48 -0800122 android:id="@+id/more_browser_settings"
jrizzoli3f57be02016-01-24 21:06:30 +0100123 style="@style/OverflowButtonInverted" />
Bijan Amirzada41242f22014-03-21 12:12:18 -0700124</com.android.browser.NavigationBarTablet>