Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 1 | <?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 Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 22 | android:layout_height="48dip" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 23 | android:orientation="horizontal" |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 24 | android:background="@drawable/urlbar_bg"> |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 25 | <ImageButton |
| 26 | android:id="@+id/back" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 27 | android:src="@drawable/ic_back_normal" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 28 | android:layout_width="wrap_content" |
| 29 | android:layout_height="match_parent" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 30 | style="@style/HoloButton" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 31 | android:background="@drawable/browserbarbutton" /> |
| 32 | <ImageButton |
| 33 | android:id="@+id/forward" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 34 | android:src="@drawable/ic_forward_normal" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="match_parent" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 37 | style="@style/HoloButton" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 38 | android:background="@drawable/browserbarbutton" /> |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 39 | <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 Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 47 | <LinearLayout |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 48 | android:id="@+id/urlbar_unfocused" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 49 | android:layout_width="0dip" |
| 50 | android:layout_height="match_parent" |
| 51 | android:layout_weight="1.0" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 52 | android:background="@null" |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 53 | android:orientation="horizontal"> |
| 54 | <ImageView |
| 55 | android:id="@+id/browsericon" |
| 56 | android:src="@drawable/ic_web_white" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 57 | android:layout_width="wrap_content" |
| 58 | android:layout_height="match_parent" |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 59 | style="@style/HoloButton" /> |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 60 | <ImageView |
| 61 | android:id="@+id/lock" |
| 62 | android:layout_width="wrap_content" |
| 63 | android:layout_height="wrap_content" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 64 | style="@style/HoloIcon" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 65 | android:visibility="gone" /> |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 66 | <EditText |
| 67 | android:id="@+id/url_unfocused" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 68 | android:layout_width="0dip" |
| 69 | android:layout_weight="1.0" |
| 70 | android:layout_height="match_parent" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 71 | android:background="@null" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 72 | android:textAppearance="?android:attr/textAppearanceMedium" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 73 | android:textColor="#ffc0c0c0" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 74 | 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 Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 80 | android:inputType="textUri" |
| 81 | android:imeOptions="actionGo" /> |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 82 | <ImageButton |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 83 | android:id="@+id/star" |
| 84 | android:src="@drawable/ic_favorite_off_normal" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="match_parent" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 87 | style="@style/HoloButton" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 88 | android:background="@drawable/browserbarbutton" /> |
| 89 | </LinearLayout> |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 90 | <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 Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 97 | android:visibility="gone"> |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 98 | <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 Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 120 | <ImageView |
| 121 | android:id="@+id/clear" |
| 122 | android:src="@drawable/ic_clear_search" |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 123 | android:layout_width="wrap_content" |
| 124 | android:layout_height="match_parent" |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 125 | style="@style/HoloButton" /> |
Michael Kolb | 513286f | 2010-09-09 12:55:12 -0700 | [diff] [blame] | 126 | </LinearLayout> |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 127 | <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 Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 152 | </LinearLayout> |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 153 | <com.android.browser.PageProgressView |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 154 | android:id="@+id/progress" |
| 155 | android:layout_width="match_parent" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 156 | android:layout_height="22dip" |
Michael Kolb | b7b115e | 2010-09-25 16:59:37 -0700 | [diff] [blame^] | 157 | android:background="@null" |
| 158 | android:src="@drawable/progress" |
Michael Kolb | c7485ae | 2010-09-03 10:10:58 -0700 | [diff] [blame] | 159 | android:layout_marginTop="-11dip" |
Michael Kolb | a2b2ba8 | 2010-08-04 17:54:03 -0700 | [diff] [blame] | 160 | android:visibility="gone" /> |
| 161 | </LinearLayout> |