John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 2011, The Android Open Source Project |
| 4 | |
| 5 | 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 |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | 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. |
| 16 | --> |
| 17 | <com.android.browser.NavigationBarTablet |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:orientation="horizontal" |
| 20 | android:background="@drawable/bg_urlbar"> |
Michael Kolb | de46376 | 2011-07-14 15:25:45 -0700 | [diff] [blame] | 21 | <LinearLayout |
| 22 | android:id="@+id/navbuttons" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 23 | android:layout_width="wrap_content" |
John Reck | 5fc96f5 | 2011-07-18 10:00:46 -0700 | [diff] [blame] | 24 | android:layout_height="match_parent" |
Michael Kolb | de46376 | 2011-07-14 15:25:45 -0700 | [diff] [blame] | 25 | android:orientation="horizontal"> |
| 26 | <ImageButton |
| 27 | android:id="@+id/back" |
| 28 | android:src="@drawable/ic_back_holo_dark" |
| 29 | android:layout_width="wrap_content" |
| 30 | android:layout_height="match_parent" |
| 31 | android:paddingLeft="16dip" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 32 | android:contentDescription="@string/accessibility_button_back" |
Michael Kolb | de46376 | 2011-07-14 15:25:45 -0700 | [diff] [blame] | 33 | style="@style/HoloButton" /> |
| 34 | <ImageButton |
| 35 | android:id="@+id/forward" |
| 36 | android:src="@drawable/ic_forward_holo_dark" |
| 37 | android:layout_width="wrap_content" |
| 38 | android:layout_height="match_parent" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 39 | android:contentDescription="@string/accessibility_button_forward" |
Michael Kolb | de46376 | 2011-07-14 15:25:45 -0700 | [diff] [blame] | 40 | style="@style/HoloButton" /> |
| 41 | <ImageButton |
| 42 | android:id="@+id/stop" |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="match_parent" |
| 45 | style="@style/HoloButton" |
| 46 | android:gravity="center_vertical" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 47 | android:contentDescription="@string/accessibility_button_stop" |
Michael Kolb | de46376 | 2011-07-14 15:25:45 -0700 | [diff] [blame] | 48 | android:src="@drawable/ic_stop_holo_dark" /> |
| 49 | </LinearLayout> |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 50 | <LinearLayout |
| 51 | android:id="@+id/urlbar_focused" |
| 52 | android:layout_width="0dip" |
| 53 | android:layout_height="match_parent" |
| 54 | android:layout_weight="1.0" |
| 55 | android:layout_marginLeft="8dip" |
| 56 | android:layout_marginRight="8dip" |
| 57 | android:orientation="horizontal" |
| 58 | android:background="@drawable/url_background"> |
| 59 | <ImageView |
| 60 | android:id="@+id/url_icon" |
John Reck | 034637c | 2011-08-11 11:34:44 -0700 | [diff] [blame^] | 61 | android:layout_width="48dp" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 62 | android:layout_height="match_parent" |
| 63 | android:src="@drawable/ic_web_holo_dark" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 64 | android:contentDescription="@string/accessibility_button_uaswitch" |
John Reck | 034637c | 2011-08-11 11:34:44 -0700 | [diff] [blame^] | 65 | android:scaleType="center" |
| 66 | style="@style/HoloButton" /> |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 67 | <ImageView |
| 68 | android:id="@+id/lock" |
| 69 | android:layout_width="wrap_content" |
| 70 | android:layout_height="match_parent" |
| 71 | style="@style/HoloIcon" |
| 72 | android:visibility="gone" /> |
| 73 | <com.android.browser.UrlInputView |
| 74 | android:id="@+id/url" |
| 75 | android:layout_width="0dip" |
| 76 | android:layout_weight="1.0" |
| 77 | android:layout_height="match_parent" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 78 | android:paddingLeft="0dip" |
| 79 | android:paddingRight="0dip" |
| 80 | android:background="@null" |
| 81 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 82 | android:hint="@string/search_hint" |
| 83 | android:singleLine="true" |
| 84 | android:ellipsize="end" |
| 85 | android:lines="1" |
| 86 | android:scrollHorizontally="true" |
| 87 | android:inputType="textUri" |
| 88 | android:imeOptions="actionGo" |
| 89 | style="@style/Suggestions" /> |
| 90 | <ImageButton |
| 91 | android:id="@+id/star" |
| 92 | android:src="@drawable/btn_imageview_star" |
| 93 | android:layout_width="wrap_content" |
| 94 | android:layout_height="match_parent" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 95 | android:contentDescription="@string/accessibility_button_addbookmark" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 96 | style="@style/HoloButton" /> |
| 97 | <ImageButton |
| 98 | android:id="@+id/clear" |
| 99 | android:src="@drawable/ic_stop_holo_dark" |
| 100 | android:layout_width="wrap_content" |
| 101 | android:layout_height="match_parent" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 102 | android:contentDescription="@string/accessibility_button_clear" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 103 | style="@style/HoloButton" /> |
| 104 | </LinearLayout> |
| 105 | <ImageButton |
| 106 | android:id="@+id/go" |
| 107 | android:src="@drawable/ic_go_holo_dark" |
| 108 | android:layout_width="wrap_content" |
| 109 | android:layout_height="match_parent" |
| 110 | android:visibility="gone" |
| 111 | android:gravity="center_vertical" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 112 | android:contentDescription="@string/accessibility_button_go" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 113 | style="@style/HoloButton" /> |
| 114 | <ImageButton |
| 115 | android:id="@+id/voicesearch" |
| 116 | android:src="@drawable/ic_voice_search_holo_dark" |
| 117 | android:layout_width="wrap_content" |
| 118 | android:layout_height="match_parent" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 119 | android:contentDescription="@string/accessibility_button_voice" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 120 | style="@style/HoloButton" /> |
| 121 | <ImageButton |
| 122 | android:id="@+id/search" |
| 123 | android:src="@drawable/ic_search_holo_dark" |
| 124 | android:layout_width="wrap_content" |
| 125 | android:layout_height="match_parent" |
| 126 | android:gravity="center_vertical" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 127 | android:contentDescription="@string/accessibility_button_search" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 128 | style="@style/HoloButton" /> |
| 129 | <ImageButton |
| 130 | android:id="@+id/all_btn" |
| 131 | android:layout_width="wrap_content" |
| 132 | android:layout_height="match_parent" |
| 133 | android:scaleType="center" |
| 134 | android:paddingRight="16dip" |
| 135 | style="@style/HoloButton" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 136 | android:contentDescription="@string/accessibility_button_bookmarks" |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 137 | android:src="@drawable/ic_bookmarks_history_holo_dark" /> |
| 138 | </com.android.browser.NavigationBarTablet> |