blob: 3ef6d35b2d1fd30dde692fbaa46f3b55f86a2acc [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-->
17<com.android.browser.NavigationBarTablet
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:orientation="horizontal"
20 android:background="@drawable/bg_urlbar">
Michael Kolbde463762011-07-14 15:25:45 -070021 <LinearLayout
22 android:id="@+id/navbuttons"
John Reck0f602f32011-07-07 15:38:43 -070023 android:layout_width="wrap_content"
John Reck5fc96f52011-07-18 10:00:46 -070024 android:layout_height="match_parent"
Michael Kolbde463762011-07-14 15:25:45 -070025 android:orientation="horizontal">
26 <ImageButton
27 android:id="@+id/back"
28 android:src="@drawable/ic_back_holo_dark"
29 android:layout_width="wrap_content"
30 android:layout_height="match_parent"
31 android:paddingLeft="16dip"
Michael Kolb30adae62011-07-29 13:37:05 -070032 android:contentDescription="@string/accessibility_button_back"
Michael Kolbde463762011-07-14 15:25:45 -070033 style="@style/HoloButton" />
34 <ImageButton
35 android:id="@+id/forward"
36 android:src="@drawable/ic_forward_holo_dark"
37 android:layout_width="wrap_content"
38 android:layout_height="match_parent"
Michael Kolb30adae62011-07-29 13:37:05 -070039 android:contentDescription="@string/accessibility_button_forward"
Michael Kolbde463762011-07-14 15:25:45 -070040 style="@style/HoloButton" />
41 <ImageButton
42 android:id="@+id/stop"
43 android:layout_width="wrap_content"
44 android:layout_height="match_parent"
45 style="@style/HoloButton"
46 android:gravity="center_vertical"
Michael Kolb30adae62011-07-29 13:37:05 -070047 android:contentDescription="@string/accessibility_button_stop"
Michael Kolbde463762011-07-14 15:25:45 -070048 android:src="@drawable/ic_stop_holo_dark" />
49 </LinearLayout>
John Reck0f602f32011-07-07 15:38:43 -070050 <LinearLayout
51 android:id="@+id/urlbar_focused"
52 android:layout_width="0dip"
53 android:layout_height="match_parent"
54 android:layout_weight="1.0"
55 android:layout_marginLeft="8dip"
56 android:layout_marginRight="8dip"
57 android:orientation="horizontal"
58 android:background="@drawable/url_background">
59 <ImageView
60 android:id="@+id/url_icon"
John Reck034637c2011-08-11 11:34:44 -070061 android:layout_width="48dp"
John Reck0f602f32011-07-07 15:38:43 -070062 android:layout_height="match_parent"
63 android:src="@drawable/ic_web_holo_dark"
Michael Kolb30adae62011-07-29 13:37:05 -070064 android:contentDescription="@string/accessibility_button_uaswitch"
John Reck034637c2011-08-11 11:34:44 -070065 android:scaleType="center"
66 style="@style/HoloButton" />
John Reck0f602f32011-07-07 15:38:43 -070067 <ImageView
68 android:id="@+id/lock"
69 android:layout_width="wrap_content"
70 android:layout_height="match_parent"
71 style="@style/HoloIcon"
72 android:visibility="gone" />
73 <com.android.browser.UrlInputView
74 android:id="@+id/url"
75 android:layout_width="0dip"
76 android:layout_weight="1.0"
77 android:layout_height="match_parent"
John Reck0f602f32011-07-07 15:38:43 -070078 android:paddingLeft="0dip"
79 android:paddingRight="0dip"
80 android:background="@null"
81 android:textAppearance="?android:attr/textAppearanceMedium"
82 android:hint="@string/search_hint"
83 android:singleLine="true"
84 android:ellipsize="end"
85 android:lines="1"
86 android:scrollHorizontally="true"
87 android:inputType="textUri"
88 android:imeOptions="actionGo"
89 style="@style/Suggestions" />
90 <ImageButton
91 android:id="@+id/star"
92 android:src="@drawable/btn_imageview_star"
93 android:layout_width="wrap_content"
94 android:layout_height="match_parent"
Michael Kolb30adae62011-07-29 13:37:05 -070095 android:contentDescription="@string/accessibility_button_addbookmark"
John Reck0f602f32011-07-07 15:38:43 -070096 style="@style/HoloButton" />
97 <ImageButton
98 android:id="@+id/clear"
99 android:src="@drawable/ic_stop_holo_dark"
100 android:layout_width="wrap_content"
101 android:layout_height="match_parent"
Michael Kolb30adae62011-07-29 13:37:05 -0700102 android:contentDescription="@string/accessibility_button_clear"
John Reck0f602f32011-07-07 15:38:43 -0700103 style="@style/HoloButton" />
104 </LinearLayout>
105 <ImageButton
106 android:id="@+id/go"
107 android:src="@drawable/ic_go_holo_dark"
108 android:layout_width="wrap_content"
109 android:layout_height="match_parent"
110 android:visibility="gone"
111 android:gravity="center_vertical"
Michael Kolb30adae62011-07-29 13:37:05 -0700112 android:contentDescription="@string/accessibility_button_go"
John Reck0f602f32011-07-07 15:38:43 -0700113 style="@style/HoloButton" />
114 <ImageButton
115 android:id="@+id/voicesearch"
116 android:src="@drawable/ic_voice_search_holo_dark"
117 android:layout_width="wrap_content"
118 android:layout_height="match_parent"
Michael Kolb30adae62011-07-29 13:37:05 -0700119 android:contentDescription="@string/accessibility_button_voice"
John Reck0f602f32011-07-07 15:38:43 -0700120 style="@style/HoloButton" />
121 <ImageButton
122 android:id="@+id/search"
123 android:src="@drawable/ic_search_holo_dark"
124 android:layout_width="wrap_content"
125 android:layout_height="match_parent"
126 android:gravity="center_vertical"
Michael Kolb30adae62011-07-29 13:37:05 -0700127 android:contentDescription="@string/accessibility_button_search"
John Reck0f602f32011-07-07 15:38:43 -0700128 style="@style/HoloButton" />
129 <ImageButton
130 android:id="@+id/all_btn"
131 android:layout_width="wrap_content"
132 android:layout_height="match_parent"
133 android:scaleType="center"
134 android:paddingRight="16dip"
135 style="@style/HoloButton"
Michael Kolb30adae62011-07-29 13:37:05 -0700136 android:contentDescription="@string/accessibility_button_bookmarks"
John Reck0f602f32011-07-07 15:38:43 -0700137 android:src="@drawable/ic_bookmarks_history_holo_dark" />
138</com.android.browser.NavigationBarTablet>