blob: 7789bfc345087da13a4296e09fc9e167a25347ec [file] [log] [blame]
Leon Scroggins81db3662009-06-04 17:45:11 -04001<?xml version="1.0" encoding="utf-8"?>
Leon Scrogginsa81a7642009-08-31 17:05:41 -04002<!--
Michael Kolb11d19782011-03-20 10:17:40 -07003 Copyright 2011, The Android Open Source Project
Leon Scroggins81db3662009-06-04 17:45:11 -04004
Leon Scrogginsa81a7642009-08-31 17:05:41 -04005 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
Leon Scroggins81db3662009-06-04 17:45:11 -04008
Leon Scrogginsa81a7642009-08-31 17:05:41 -04009 http://www.apache.org/licenses/LICENSE-2.0
Leon Scroggins81db3662009-06-04 17:45:11 -040010
Leon Scrogginsa81a7642009-08-31 17:05:41 -040011 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.
Leon Scroggins81db3662009-06-04 17:45:11 -040016-->
Michael Kolb11d19782011-03-20 10:17:40 -070017<RelativeLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/titlebar"
Romain Guy15b8ec62010-01-08 15:06:43 -080020 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -070021 android:layout_height="wrap_content">
Leon Scroggins81db3662009-06-04 17:45:11 -040022 <LinearLayout
John Reckb9a051b2011-03-18 11:55:48 -070023 android:id="@+id/taburlbar"
Romain Guy15b8ec62010-01-08 15:06:43 -080024 android:layout_width="match_parent"
Michael Kolb5a4372f2011-04-29 13:53:10 -070025 android:layout_height="@dimen/toolbar_height"
Leon Scrogginsf4bb18a2009-09-11 18:37:53 -040026 android:orientation="horizontal"
Michael Kolb305b1c52011-06-21 16:16:22 -070027 android:background="@drawable/bg_urlbar">
Michael Kolb11d19782011-03-20 10:17:40 -070028 <LinearLayout
29 android:id="@+id/title_bg"
Leon Scrogginsa81a7642009-08-31 17:05:41 -040030 android:layout_width="0dip"
31 android:layout_weight="1.0"
Michael Kolb5a4372f2011-04-29 13:53:10 -070032 android:layout_height="match_parent"
Leon Scrogginsf4bb18a2009-09-11 18:37:53 -040033 android:gravity="center_vertical"
Michael Kolb11d19782011-03-20 10:17:40 -070034 android:orientation="horizontal">
Michael Kolb305b1c52011-06-21 16:16:22 -070035 <FrameLayout
36 android:id="@+id/iconcombo"
37 android:layout_width="52dip"
38 android:layout_height="match_parent"
39 style="@style/HoloButton">
40 <ImageView
41 android:id="@+id/favicon"
42 android:layout_width="36dip"
43 android:layout_height="36dip"
44 android:paddingLeft="8dip"
45 android:paddingRight="8dip"
46 android:layout_gravity="center_vertical" />
47 <ImageView
48 android:id="@+id/lock"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_gravity="bottom|right"
52 android:visibility="gone" />
53 </FrameLayout>
Michael Kolb11d19782011-03-20 10:17:40 -070054 <ImageView
Michael Kolb305b1c52011-06-21 16:16:22 -070055 android:id="@+id/stop"
Michael Kolb11d19782011-03-20 10:17:40 -070056 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
Michael Kolb305b1c52011-06-21 16:16:22 -070058 android:layout_gravity="center_vertical"
59 android:src="@drawable/ic_stop_holo_dark"
60 style="@style/HoloButton" />
Michael Kolb11d19782011-03-20 10:17:40 -070061 <com.android.browser.UrlInputView
62 android:id="@+id/url"
63 android:focusable="true"
64 android:layout_width="0dip"
65 android:layout_weight="1.0"
66 android:layout_height="match_parent"
Michael Kolb305b1c52011-06-21 16:16:22 -070067 android:fadingEdge="horizontal"
68 android:fadingEdgeLength="24dip"
Michael Kolb11d19782011-03-20 10:17:40 -070069 android:textAppearance="?android:attr/textAppearanceMedium"
70 android:hint="@string/search_hint"
71 android:singleLine="true"
72 android:ellipsize="end"
73 android:lines="1"
74 android:scrollHorizontally="true"
Michael Kolb305b1c52011-06-21 16:16:22 -070075 android:inputType="text"
Michael Kolb11d19782011-03-20 10:17:40 -070076 android:imeOptions="actionGo"
Michael Kolb305b1c52011-06-21 16:16:22 -070077 style="@style/Suggestions"
78 android:background="@null" />
79 <ImageView
80 android:id="@+id/voice"
81 android:layout_width="wrap_content"
82 android:layout_height="match_parent"
83 android:src="@drawable/ic_voice_search_holo_dark"
84 style="@style/HoloButton"
85 android:visibility="gone" />
Leon Scrogginsf4bb18a2009-09-11 18:37:53 -040086 </LinearLayout>
John Reck8ac42902011-06-29 16:14:34 -070087 <ImageButton
88 android:id="@+id/tab_switcher"
89 android:layout_width="wrap_content"
90 android:layout_height="match_parent"
91 android:src="@drawable/ic_windows_holo_dark"
92 style="@style/HoloButton" />
Michael Kolb017ffab2011-07-11 15:26:47 -070093 <ImageButton
94 android:id="@+id/more"
95 android:layout_width="wrap_content"
96 android:layout_height="match_parent"
97 style="@style/HoloButton"
98 android:gravity="center_vertical"
99 android:src="@*android:drawable/ic_menu_moreoverflow_normal_holo_dark" />
Leon Scrogginsa81a7642009-08-31 17:05:41 -0400100 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -0700101 <LinearLayout
102 android:id="@+id/autologin"
103 android:background="#FBF0A0"
104 android:gravity="center_vertical"
105 android:paddingTop="3dip"
106 android:visibility="gone"
107 android:layout_below="@+id/taburlbar"
John Reck94b7e042011-02-15 15:02:33 -0800108 android:layout_width="match_parent"
John Reck12472f62011-04-27 15:32:10 -0700109 android:layout_height="wrap_content"
110 android:orientation="vertical">
111 <LinearLayout
112 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -0700113 android:layout_height="wrap_content"
John Reck12472f62011-04-27 15:32:10 -0700114 android:paddingLeft="8dip"
115 android:paddingRight="8dip">
116 <TextView
117 android:text="@string/autologin_bar_text"
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
120 android:textColor="@android:color/primary_text_light"
121 android:textAppearance="?android:attr/textAppearanceMedium" />
122 <Spinner
123 android:id="@+id/autologin_account"
124 android:layout_height="wrap_content"
125 android:layout_width="match_parent"
126 android:paddingLeft="8dp"
127 android:paddingRight="24dp"
128 style="@android:style/Widget.Holo.Light.Spinner" />
129 </LinearLayout>
130 <LinearLayout
131 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -0700132 android:layout_height="wrap_content"
John Reck12472f62011-04-27 15:32:10 -0700133 android:paddingLeft="8dip"
134 android:paddingRight="8dip">
135 <Button
136 android:id="@+id/autologin_close"
137 android:layout_width="0dip"
138 android:layout_weight="1"
139 android:layout_height="wrap_content"
140 android:text="@string/autologin_bar_hide_text"
141 style="@android:style/Widget.Holo.Light.Button" />
142 <ProgressBar
143 android:id="@+id/autologin_progress"
144 android:indeterminateOnly="true"
145 android:layout_height="wrap_content"
146 android:layout_width="wrap_content"
147 android:visibility="invisible" />
148 <Button
149 android:id="@+id/autologin_login"
150 android:text="@string/autologin_bar_login_text"
151 style="@android:style/Widget.Holo.Light.Button"
152 android:layout_height="wrap_content"
153 android:layout_width="0dip"
154 android:layout_weight="1" />
155 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -0700156 <TextView
157 android:id="@+id/autologin_error"
158 android:layout_height="wrap_content"
159 android:layout_width="wrap_content"
160 android:textColor="#dd6826"
161 android:text="@string/autologin_bar_error"
162 android:textAppearance="?android:attr/textAppearanceMedium"
163 android:visibility="gone" />
Michael Kolb11d19782011-03-20 10:17:40 -0700164 </LinearLayout>
Michael Kolbc16c5952011-03-29 15:37:03 -0700165 <com.android.browser.PageProgressView
166 android:id="@+id/progress"
167 android:layout_width="match_parent"
Michael Kolb8f11d062011-04-25 12:47:07 -0700168 android:layout_height="wrap_content"
Michael Kolbc16c5952011-03-29 15:37:03 -0700169 android:background="@null"
170 android:layout_below="@+id/taburlbar"
171 android:src="@drawable/progress"
Michael Kolb8f11d062011-04-25 12:47:07 -0700172 android:layout_marginTop="-8dip"
Michael Kolbc16c5952011-03-29 15:37:03 -0700173 android:visibility="gone" />
John Reck12472f62011-04-27 15:32:10 -0700174</RelativeLayout>