blob: 8b4a3c082a78cc922445b7862d6d60ce780ec9d9 [file] [log] [blame]
Michael Kolba2b2ba82010-08-04 17:54:03 -07001<?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright 2010, The Android Open Source Project Licensed under the
4 Apache License, Version 2.0 (the "License"); you may not use this file
5 except in compliance with the License. You may obtain a copy of the
6 License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
7 applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for
10 the specific language governing permissions and limitations under the
11 License.
12 -->
13<LinearLayout
14 xmlns:android="http://schemas.android.com/apk/res/android"
15 android:id="@+id/content"
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:orientation="vertical">
19 <LinearLayout
20 android:id="@+id/taburlbar"
21 android:layout_width="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070022 android:layout_height="48dip"
Michael Kolba2b2ba82010-08-04 17:54:03 -070023 android:orientation="horizontal"
Michael Kolbb7b115e2010-09-25 16:59:37 -070024 android:background="@drawable/urlbar_bg">
Michael Kolba2b2ba82010-08-04 17:54:03 -070025 <ImageButton
26 android:id="@+id/back"
Michael Kolbc7485ae2010-09-03 10:10:58 -070027 android:src="@drawable/ic_back_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070028 android:layout_width="wrap_content"
29 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070030 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070031 android:background="@drawable/browserbarbutton" />
32 <ImageButton
33 android:id="@+id/forward"
Michael Kolbc7485ae2010-09-03 10:10:58 -070034 android:src="@drawable/ic_forward_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070035 android:layout_width="wrap_content"
36 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070037 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070038 android:background="@drawable/browserbarbutton" />
Michael Kolbc7485ae2010-09-03 10:10:58 -070039 <ImageView
40 android:id="@+id/stop"
41 android:background="@drawable/browserbarbutton"
42 android:layout_width="wrap_content"
43 android:layout_height="match_parent"
44 style="@style/HoloButton"
45 android:gravity="center_vertical"
46 android:src="@drawable/ic_stop_normal" />
Michael Kolba2b2ba82010-08-04 17:54:03 -070047 <LinearLayout
Michael Kolb513286f2010-09-09 12:55:12 -070048 android:id="@+id/urlbar_unfocused"
Michael Kolba2b2ba82010-08-04 17:54:03 -070049 android:layout_width="0dip"
50 android:layout_height="match_parent"
51 android:layout_weight="1.0"
Michael Kolb513286f2010-09-09 12:55:12 -070052 android:background="@null"
Michael Kolbb7b115e2010-09-25 16:59:37 -070053 android:orientation="horizontal">
54 <ImageView
55 android:id="@+id/browsericon"
56 android:src="@drawable/ic_web_white"
Michael Kolba2b2ba82010-08-04 17:54:03 -070057 android:layout_width="wrap_content"
58 android:layout_height="match_parent"
Michael Kolbb7b115e2010-09-25 16:59:37 -070059 style="@style/HoloButton" />
Michael Kolba2b2ba82010-08-04 17:54:03 -070060 <ImageView
61 android:id="@+id/lock"
62 android:layout_width="wrap_content"
Michael Kolb0506f2d2010-10-14 16:20:16 -070063 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070064 style="@style/HoloIcon"
Michael Kolba2b2ba82010-08-04 17:54:03 -070065 android:visibility="gone" />
Michael Kolb513286f2010-09-09 12:55:12 -070066 <EditText
67 android:id="@+id/url_unfocused"
Michael Kolba2b2ba82010-08-04 17:54:03 -070068 android:layout_width="0dip"
69 android:layout_weight="1.0"
70 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070071 android:background="@null"
Michael Kolba2b2ba82010-08-04 17:54:03 -070072 android:textAppearance="?android:attr/textAppearanceMedium"
Michael Kolb513286f2010-09-09 12:55:12 -070073 android:textColor="#ffc0c0c0"
Michael Kolba2b2ba82010-08-04 17:54:03 -070074 android:hint="@string/search_hint"
75 android:gravity="center_vertical"
76 android:singleLine="true"
77 android:ellipsize="end"
78 android:lines="1"
79 android:scrollHorizontally="true"
Michael Kolba2b2ba82010-08-04 17:54:03 -070080 android:inputType="textUri"
81 android:imeOptions="actionGo" />
Michael Kolba2b2ba82010-08-04 17:54:03 -070082 <ImageButton
Michael Kolbb7b115e2010-09-25 16:59:37 -070083 android:id="@+id/star"
84 android:src="@drawable/ic_favorite_off_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070085 android:layout_width="wrap_content"
86 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070087 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070088 android:background="@drawable/browserbarbutton" />
89 </LinearLayout>
Michael Kolb513286f2010-09-09 12:55:12 -070090 <LinearLayout
91 android:id="@+id/urlbar_focused"
92 android:layout_width="0dip"
93 android:layout_height="match_parent"
94 android:layout_weight="1.0"
95 android:orientation="horizontal"
96 android:background="@drawable/text_field_results"
Michael Kolbb7b115e2010-09-25 16:59:37 -070097 android:visibility="gone">
Michael Kolb513286f2010-09-09 12:55:12 -070098 <ImageView
99 android:id="@+id/searchicon"
100 android:src="@drawable/ic_search_category_suggest"
101 android:layout_width="wrap_content"
102 android:layout_height="match_parent"
103 style="@style/HoloButton" />
104 <com.android.browser.UrlInputView
105 android:id="@+id/url_focused"
106 android:layout_width="0dip"
107 android:layout_weight="1.0"
108 android:layout_height="match_parent"
109 android:background="@null"
110 android:textAppearance="?android:attr/textAppearanceMedium"
111 android:textColor="@color/black"
112 android:hint="@string/search_hint"
113 android:gravity="center_vertical"
114 android:singleLine="true"
115 android:ellipsize="end"
116 android:lines="1"
117 android:scrollHorizontally="true"
118 android:inputType="textUri"
119 android:imeOptions="actionGo" />
Michael Kolbb7b115e2010-09-25 16:59:37 -0700120 <ImageView
121 android:id="@+id/clear"
122 android:src="@drawable/ic_clear_search"
Michael Kolb513286f2010-09-09 12:55:12 -0700123 android:layout_width="wrap_content"
124 android:layout_height="match_parent"
Michael Kolbb7b115e2010-09-25 16:59:37 -0700125 style="@style/HoloButton" />
Michael Kolb513286f2010-09-09 12:55:12 -0700126 </LinearLayout>
Michael Kolbb7b115e2010-09-25 16:59:37 -0700127 <ImageButton
128 android:id="@+id/go"
129 android:src="@drawable/ic_go_normal_white"
130 android:layout_width="wrap_content"
131 android:layout_height="match_parent"
132 android:visibility="gone"
133 android:gravity="center_vertical"
134 style="@style/HoloButton"
135 android:background="@drawable/browserbarbutton" />
136 <ImageButton
137 android:id="@+id/search"
138 android:src="@drawable/ic_search_normal"
139 android:layout_width="wrap_content"
140 android:layout_height="match_parent"
141 android:gravity="center_vertical"
142 style="@style/HoloButton"
143 android:background="@drawable/browserbarbutton" />
144 <ImageButton
145 android:id="@+id/all_btn"
146 android:layout_width="wrap_content"
147 android:layout_height="match_parent"
148 android:scaleType="center"
149 style="@style/HoloButton"
150 android:background="@drawable/browserbarbutton"
151 android:src="@drawable/ic_bookmarks_history_normal" />
Michael Kolba2b2ba82010-08-04 17:54:03 -0700152 </LinearLayout>
Michael Kolbc7485ae2010-09-03 10:10:58 -0700153 <com.android.browser.PageProgressView
Michael Kolba2b2ba82010-08-04 17:54:03 -0700154 android:id="@+id/progress"
155 android:layout_width="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -0700156 android:layout_height="22dip"
Michael Kolbb7b115e2010-09-25 16:59:37 -0700157 android:background="@null"
158 android:src="@drawable/progress"
Michael Kolbc7485ae2010-09-03 10:10:58 -0700159 android:layout_marginTop="-11dip"
Michael Kolba2b2ba82010-08-04 17:54:03 -0700160 android:visibility="gone" />
161</LinearLayout>