blob: b803881ac99c9cedcc28a74c891b59c42d66653d [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 Kolbc7485ae2010-09-03 10:10:58 -070024 android:background="@drawable/urlbar_bg"
25 >
Michael Kolba2b2ba82010-08-04 17:54:03 -070026 <ImageButton
27 android:id="@+id/back"
Michael Kolbc7485ae2010-09-03 10:10:58 -070028 android:src="@drawable/ic_back_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070029 android:layout_width="wrap_content"
30 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070031 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070032 android:background="@drawable/browserbarbutton" />
33 <ImageButton
34 android:id="@+id/forward"
Michael Kolbc7485ae2010-09-03 10:10:58 -070035 android:src="@drawable/ic_forward_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070036 android:layout_width="wrap_content"
37 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070038 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070039 android:background="@drawable/browserbarbutton" />
Michael Kolbc7485ae2010-09-03 10:10:58 -070040 <ImageView
41 android:id="@+id/stop"
42 android:background="@drawable/browserbarbutton"
43 android:layout_width="wrap_content"
44 android:layout_height="match_parent"
45 style="@style/HoloButton"
46 android:gravity="center_vertical"
47 android:src="@drawable/ic_stop_normal" />
48 <ImageButton
49 android:id="@+id/all_btn"
50 android:layout_width="wrap_content"
51 android:layout_height="match_parent"
52 android:scaleType="center"
53 style="@style/HoloButton"
54 android:background="@drawable/browserbarbutton"
55 android:src="@drawable/ic_bookmarks_history_normal" />
Michael Kolba2b2ba82010-08-04 17:54:03 -070056 <LinearLayout
Michael Kolb513286f2010-09-09 12:55:12 -070057 android:id="@+id/urlbar_unfocused"
Michael Kolba2b2ba82010-08-04 17:54:03 -070058 android:layout_width="0dip"
59 android:layout_height="match_parent"
60 android:layout_weight="1.0"
Michael Kolb513286f2010-09-09 12:55:12 -070061 android:background="@null"
Michael Kolbc7485ae2010-09-03 10:10:58 -070062 android:orientation="horizontal" >
Michael Kolba2b2ba82010-08-04 17:54:03 -070063 <ImageButton
64 android:id="@+id/star"
Michael Kolbc7485ae2010-09-03 10:10:58 -070065 android:src="@drawable/ic_favorite_on_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070066 android:layout_width="wrap_content"
67 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070068 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070069 android:background="@drawable/browserbarbutton" />
70 <ImageView
71 android:id="@+id/lock"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
Michael Kolbc7485ae2010-09-03 10:10:58 -070074 style="@style/HoloIcon"
Michael Kolba2b2ba82010-08-04 17:54:03 -070075 android:visibility="gone" />
Michael Kolb513286f2010-09-09 12:55:12 -070076 <EditText
77 android:id="@+id/url_unfocused"
Michael Kolba2b2ba82010-08-04 17:54:03 -070078 android:layout_width="0dip"
79 android:layout_weight="1.0"
80 android:layout_height="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -070081 android:background="@null"
Michael Kolba2b2ba82010-08-04 17:54:03 -070082 android:textAppearance="?android:attr/textAppearanceMedium"
Michael Kolb513286f2010-09-09 12:55:12 -070083 android:textColor="#ffc0c0c0"
Michael Kolba2b2ba82010-08-04 17:54:03 -070084 android:hint="@string/search_hint"
85 android:gravity="center_vertical"
86 android:singleLine="true"
87 android:ellipsize="end"
88 android:lines="1"
89 android:scrollHorizontally="true"
Michael Kolba2b2ba82010-08-04 17:54:03 -070090 android:inputType="textUri"
91 android:imeOptions="actionGo" />
Michael Kolba2b2ba82010-08-04 17:54:03 -070092 <ImageButton
93 android:id="@+id/search"
Michael Kolbc7485ae2010-09-03 10:10:58 -070094 android:src="@drawable/ic_search_normal"
Michael Kolba2b2ba82010-08-04 17:54:03 -070095 android:layout_width="wrap_content"
96 android:layout_height="match_parent"
97 android:gravity="center_vertical"
Michael Kolbc7485ae2010-09-03 10:10:58 -070098 style="@style/HoloButton"
Michael Kolba2b2ba82010-08-04 17:54:03 -070099 android:background="@drawable/browserbarbutton" />
100 </LinearLayout>
Michael Kolb513286f2010-09-09 12:55:12 -0700101 <LinearLayout
102 android:id="@+id/urlbar_focused"
103 android:layout_width="0dip"
104 android:layout_height="match_parent"
105 android:layout_weight="1.0"
106 android:orientation="horizontal"
107 android:background="@drawable/text_field_results"
108 android:visibility="gone"
109 >
110 <ImageView
111 android:id="@+id/searchicon"
112 android:src="@drawable/ic_search_category_suggest"
113 android:layout_width="wrap_content"
114 android:layout_height="match_parent"
115 style="@style/HoloButton" />
116 <com.android.browser.UrlInputView
117 android:id="@+id/url_focused"
118 android:layout_width="0dip"
119 android:layout_weight="1.0"
120 android:layout_height="match_parent"
121 android:background="@null"
122 android:textAppearance="?android:attr/textAppearanceMedium"
123 android:textColor="@color/black"
124 android:hint="@string/search_hint"
125 android:gravity="center_vertical"
126 android:singleLine="true"
127 android:ellipsize="end"
128 android:lines="1"
129 android:scrollHorizontally="true"
130 android:inputType="textUri"
131 android:imeOptions="actionGo" />
132 <ImageButton
133 android:id="@+id/go"
134 android:src="@drawable/ic_go_dark"
135 android:layout_width="wrap_content"
136 android:layout_height="match_parent"
137 android:gravity="center_vertical"
138 style="@style/HoloButton"
139 android:background="@drawable/browserbarbutton" />
140 </LinearLayout>
Michael Kolba2b2ba82010-08-04 17:54:03 -0700141 </LinearLayout>
Michael Kolbc7485ae2010-09-03 10:10:58 -0700142 <com.android.browser.PageProgressView
Michael Kolba2b2ba82010-08-04 17:54:03 -0700143 android:id="@+id/progress"
144 android:layout_width="match_parent"
Michael Kolbc7485ae2010-09-03 10:10:58 -0700145 android:layout_height="22dip"
146 android:background = "@null"
147 android:src = "@drawable/progress"
148 android:layout_marginTop="-11dip"
Michael Kolba2b2ba82010-08-04 17:54:03 -0700149 android:visibility="gone" />
150</LinearLayout>