blob: 35d3611a6946a10ecc3427693e01a60d0d77a825 [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"
Leon Scroggins81db3662009-06-04 17:45:11 -040025 android:layout_height="wrap_content"
Leon Scrogginsf4bb18a2009-09-11 18:37:53 -040026 android:orientation="horizontal"
John Reck94b7e042011-02-15 15:02:33 -080027 android:background="@drawable/bg_urlbar"
28 android:paddingLeft="4dip"
29 android:paddingRight="4dip"
30 android:paddingTop="2dip"
Michael Kolb11d19782011-03-20 10:17:40 -070031 android:paddingBottom="2dip">
32 <LinearLayout
33 android:id="@+id/title_bg"
Leon Scrogginsa81a7642009-08-31 17:05:41 -040034 android:layout_width="0dip"
35 android:layout_weight="1.0"
Michael Kolb11d19782011-03-20 10:17:40 -070036 android:layout_height="40dip"
Leon Scrogginsf4bb18a2009-09-11 18:37:53 -040037 android:gravity="center_vertical"
Michael Kolb11d19782011-03-20 10:17:40 -070038 android:orientation="horizontal">
39 <ImageView
40 android:id="@+id/favicon"
41 android:layout_width="20dip"
42 android:layout_height="20dip" />
43 <ImageView
44 android:id="@+id/lock"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_marginLeft="2dip"
48 android:visibility="gone" />
49 <com.android.browser.UrlInputView
50 android:id="@+id/url"
51 android:focusable="true"
52 android:layout_width="0dip"
53 android:layout_weight="1.0"
54 android:layout_height="match_parent"
55 android:layout_marginLeft="2dip"
Michael Kolb2e108ef2011-03-23 14:40:28 -070056 android:paddingLeft="4dip"
57 android:paddingRight="4dip"
58 android:background="@drawable/url_selector"
Michael Kolb11d19782011-03-20 10:17:40 -070059 android:textAppearance="?android:attr/textAppearanceMedium"
60 android:hint="@string/search_hint"
61 android:singleLine="true"
62 android:ellipsize="end"
63 android:lines="1"
64 android:scrollHorizontally="true"
65 android:inputType="textUri"
66 android:imeOptions="actionGo"
67 style="@style/Suggestions" />
Leon Scrogginsf4bb18a2009-09-11 18:37:53 -040068 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -070069 <ImageView
70 android:id="@+id/voice"
71 android:layout_width="wrap_content"
72 android:layout_height="match_parent"
73 android:src="@drawable/ic_voice_search_holo_dark"
74 android:visibility="gone" />
Michael Kolbc16c5952011-03-29 15:37:03 -070075 <ImageView
John Reckbb2a3452011-02-15 11:31:56 -080076 android:id="@+id/stop"
Michael Kolbc16c5952011-03-29 15:37:03 -070077 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
Michael Kolb11d19782011-03-20 10:17:40 -070079 android:layout_gravity="center_vertical"
Michael Kolbc16c5952011-03-29 15:37:03 -070080 android:src="@drawable/ic_stop_holo_dark"
Michael Kolb11d19782011-03-20 10:17:40 -070081 android:visibility="gone" />
Leon Scrogginsa81a7642009-08-31 17:05:41 -040082 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -070083 <LinearLayout
84 android:id="@+id/autologin"
85 android:background="#FBF0A0"
86 android:gravity="center_vertical"
87 android:paddingTop="3dip"
88 android:visibility="gone"
89 android:layout_below="@+id/taburlbar"
John Reck94b7e042011-02-15 15:02:33 -080090 android:layout_width="match_parent"
John Reck12472f62011-04-27 15:32:10 -070091 android:layout_height="wrap_content"
92 android:orientation="vertical">
93 <LinearLayout
94 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -070095 android:layout_height="wrap_content"
John Reck12472f62011-04-27 15:32:10 -070096 android:paddingLeft="8dip"
97 android:paddingRight="8dip">
98 <TextView
99 android:text="@string/autologin_bar_text"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:textColor="@android:color/primary_text_light"
103 android:textAppearance="?android:attr/textAppearanceMedium" />
104 <Spinner
105 android:id="@+id/autologin_account"
106 android:layout_height="wrap_content"
107 android:layout_width="match_parent"
108 android:paddingLeft="8dp"
109 android:paddingRight="24dp"
110 style="@android:style/Widget.Holo.Light.Spinner" />
111 </LinearLayout>
112 <LinearLayout
113 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -0700114 android:layout_height="wrap_content"
John Reck12472f62011-04-27 15:32:10 -0700115 android:paddingLeft="8dip"
116 android:paddingRight="8dip">
117 <Button
118 android:id="@+id/autologin_close"
119 android:layout_width="0dip"
120 android:layout_weight="1"
121 android:layout_height="wrap_content"
122 android:text="@string/autologin_bar_hide_text"
123 style="@android:style/Widget.Holo.Light.Button" />
124 <ProgressBar
125 android:id="@+id/autologin_progress"
126 android:indeterminateOnly="true"
127 android:layout_height="wrap_content"
128 android:layout_width="wrap_content"
129 android:visibility="invisible" />
130 <Button
131 android:id="@+id/autologin_login"
132 android:text="@string/autologin_bar_login_text"
133 style="@android:style/Widget.Holo.Light.Button"
134 android:layout_height="wrap_content"
135 android:layout_width="0dip"
136 android:layout_weight="1" />
137 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -0700138 <TextView
139 android:id="@+id/autologin_error"
140 android:layout_height="wrap_content"
141 android:layout_width="wrap_content"
142 android:textColor="#dd6826"
143 android:text="@string/autologin_bar_error"
144 android:textAppearance="?android:attr/textAppearanceMedium"
145 android:visibility="gone" />
Michael Kolb11d19782011-03-20 10:17:40 -0700146 </LinearLayout>
Michael Kolbc16c5952011-03-29 15:37:03 -0700147 <com.android.browser.PageProgressView
148 android:id="@+id/progress"
149 android:layout_width="match_parent"
Michael Kolb8f11d062011-04-25 12:47:07 -0700150 android:layout_height="wrap_content"
Michael Kolbc16c5952011-03-29 15:37:03 -0700151 android:background="@null"
152 android:layout_below="@+id/taburlbar"
153 android:src="@drawable/progress"
Michael Kolb8f11d062011-04-25 12:47:07 -0700154 android:layout_marginTop="-8dip"
Michael Kolbc16c5952011-03-29 15:37:03 -0700155 android:visibility="gone" />
John Reck12472f62011-04-27 15:32:10 -0700156</RelativeLayout>