blob: 90964180b88bda9e6032b1e1c634232ff437798d [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" />
Leon Scrogginsa81a7642009-08-31 17:05:41 -040093 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -070094 <LinearLayout
95 android:id="@+id/autologin"
96 android:background="#FBF0A0"
97 android:gravity="center_vertical"
98 android:paddingTop="3dip"
99 android:visibility="gone"
100 android:layout_below="@+id/taburlbar"
John Reck94b7e042011-02-15 15:02:33 -0800101 android:layout_width="match_parent"
John Reck12472f62011-04-27 15:32:10 -0700102 android:layout_height="wrap_content"
103 android:orientation="vertical">
104 <LinearLayout
105 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -0700106 android:layout_height="wrap_content"
John Reck12472f62011-04-27 15:32:10 -0700107 android:paddingLeft="8dip"
108 android:paddingRight="8dip">
109 <TextView
110 android:text="@string/autologin_bar_text"
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:textColor="@android:color/primary_text_light"
114 android:textAppearance="?android:attr/textAppearanceMedium" />
115 <Spinner
116 android:id="@+id/autologin_account"
117 android:layout_height="wrap_content"
118 android:layout_width="match_parent"
119 android:paddingLeft="8dp"
120 android:paddingRight="24dp"
121 style="@android:style/Widget.Holo.Light.Spinner" />
122 </LinearLayout>
123 <LinearLayout
124 android:layout_width="match_parent"
Michael Kolb11d19782011-03-20 10:17:40 -0700125 android:layout_height="wrap_content"
John Reck12472f62011-04-27 15:32:10 -0700126 android:paddingLeft="8dip"
127 android:paddingRight="8dip">
128 <Button
129 android:id="@+id/autologin_close"
130 android:layout_width="0dip"
131 android:layout_weight="1"
132 android:layout_height="wrap_content"
133 android:text="@string/autologin_bar_hide_text"
134 style="@android:style/Widget.Holo.Light.Button" />
135 <ProgressBar
136 android:id="@+id/autologin_progress"
137 android:indeterminateOnly="true"
138 android:layout_height="wrap_content"
139 android:layout_width="wrap_content"
140 android:visibility="invisible" />
141 <Button
142 android:id="@+id/autologin_login"
143 android:text="@string/autologin_bar_login_text"
144 style="@android:style/Widget.Holo.Light.Button"
145 android:layout_height="wrap_content"
146 android:layout_width="0dip"
147 android:layout_weight="1" />
148 </LinearLayout>
Michael Kolb11d19782011-03-20 10:17:40 -0700149 <TextView
150 android:id="@+id/autologin_error"
151 android:layout_height="wrap_content"
152 android:layout_width="wrap_content"
153 android:textColor="#dd6826"
154 android:text="@string/autologin_bar_error"
155 android:textAppearance="?android:attr/textAppearanceMedium"
156 android:visibility="gone" />
Michael Kolb11d19782011-03-20 10:17:40 -0700157 </LinearLayout>
Michael Kolbc16c5952011-03-29 15:37:03 -0700158 <com.android.browser.PageProgressView
159 android:id="@+id/progress"
160 android:layout_width="match_parent"
Michael Kolb8f11d062011-04-25 12:47:07 -0700161 android:layout_height="wrap_content"
Michael Kolbc16c5952011-03-29 15:37:03 -0700162 android:background="@null"
163 android:layout_below="@+id/taburlbar"
164 android:src="@drawable/progress"
Michael Kolb8f11d062011-04-25 12:47:07 -0700165 android:layout_marginTop="-8dip"
Michael Kolbc16c5952011-03-29 15:37:03 -0700166 android:visibility="gone" />
John Reck12472f62011-04-27 15:32:10 -0700167</RelativeLayout>