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" |
Michael Kolb | de46376 | 2011-07-14 15:25:45 -0700 | [diff] [blame^] | 24 | android:layout_height="wrap_content" |
| 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" |
| 32 | style="@style/HoloButton" /> |
| 33 | <ImageButton |
| 34 | android:id="@+id/forward" |
| 35 | android:src="@drawable/ic_forward_holo_dark" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="match_parent" |
| 38 | style="@style/HoloButton" /> |
| 39 | <ImageButton |
| 40 | android:id="@+id/stop" |
| 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="match_parent" |
| 43 | style="@style/HoloButton" |
| 44 | android:gravity="center_vertical" |
| 45 | android:src="@drawable/ic_stop_holo_dark" /> |
| 46 | </LinearLayout> |
John Reck | 0f602f3 | 2011-07-07 15:38:43 -0700 | [diff] [blame] | 47 | <LinearLayout |
| 48 | android:id="@+id/urlbar_focused" |
| 49 | android:layout_width="0dip" |
| 50 | android:layout_height="match_parent" |
| 51 | android:layout_weight="1.0" |
| 52 | android:layout_marginLeft="8dip" |
| 53 | android:layout_marginRight="8dip" |
| 54 | android:orientation="horizontal" |
| 55 | android:background="@drawable/url_background"> |
| 56 | <ImageView |
| 57 | android:id="@+id/url_icon" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="match_parent" |
| 60 | android:src="@drawable/ic_web_holo_dark" |
| 61 | style="@style/HoloIcon" /> |
| 62 | <ImageView |
| 63 | android:id="@+id/lock" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="match_parent" |
| 66 | style="@style/HoloIcon" |
| 67 | android:visibility="gone" /> |
| 68 | <com.android.browser.UrlInputView |
| 69 | android:id="@+id/url" |
| 70 | android:layout_width="0dip" |
| 71 | android:layout_weight="1.0" |
| 72 | android:layout_height="match_parent" |
| 73 | android:layout_marginLeft="16dip" |
| 74 | android:paddingLeft="0dip" |
| 75 | android:paddingRight="0dip" |
| 76 | android:background="@null" |
| 77 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 78 | android:hint="@string/search_hint" |
| 79 | android:singleLine="true" |
| 80 | android:ellipsize="end" |
| 81 | android:lines="1" |
| 82 | android:scrollHorizontally="true" |
| 83 | android:inputType="textUri" |
| 84 | android:imeOptions="actionGo" |
| 85 | style="@style/Suggestions" /> |
| 86 | <ImageButton |
| 87 | android:id="@+id/star" |
| 88 | android:src="@drawable/btn_imageview_star" |
| 89 | android:layout_width="wrap_content" |
| 90 | android:layout_height="match_parent" |
| 91 | style="@style/HoloButton" /> |
| 92 | <ImageButton |
| 93 | android:id="@+id/clear" |
| 94 | android:src="@drawable/ic_stop_holo_dark" |
| 95 | android:layout_width="wrap_content" |
| 96 | android:layout_height="match_parent" |
| 97 | style="@style/HoloButton" /> |
| 98 | </LinearLayout> |
| 99 | <ImageButton |
| 100 | android:id="@+id/go" |
| 101 | android:src="@drawable/ic_go_holo_dark" |
| 102 | android:layout_width="wrap_content" |
| 103 | android:layout_height="match_parent" |
| 104 | android:visibility="gone" |
| 105 | android:gravity="center_vertical" |
| 106 | style="@style/HoloButton" /> |
| 107 | <ImageButton |
| 108 | android:id="@+id/voicesearch" |
| 109 | android:src="@drawable/ic_voice_search_holo_dark" |
| 110 | android:layout_width="wrap_content" |
| 111 | android:layout_height="match_parent" |
| 112 | style="@style/HoloButton" /> |
| 113 | <ImageButton |
| 114 | android:id="@+id/search" |
| 115 | android:src="@drawable/ic_search_holo_dark" |
| 116 | android:layout_width="wrap_content" |
| 117 | android:layout_height="match_parent" |
| 118 | android:gravity="center_vertical" |
| 119 | style="@style/HoloButton" /> |
| 120 | <ImageButton |
| 121 | android:id="@+id/all_btn" |
| 122 | android:layout_width="wrap_content" |
| 123 | android:layout_height="match_parent" |
| 124 | android:scaleType="center" |
| 125 | android:paddingRight="16dip" |
| 126 | style="@style/HoloButton" |
| 127 | android:src="@drawable/ic_bookmarks_history_holo_dark" /> |
| 128 | </com.android.browser.NavigationBarTablet> |