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"> 21 <LinearLayout 22 android:id="@+id/navbuttons" 23 android:layout_width="wrap_content" 24 android:layout_height="match_parent" 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 android:contentDescription="@string/accessibility_button_back" 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" 39 android:contentDescription="@string/accessibility_button_forward" 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" 47 android:contentDescription="@string/accessibility_button_stop" 48 android:src="@drawable/ic_stop_holo_dark" /> 49 </LinearLayout> 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" 61 android:layout_width="48dip" 62 android:layout_height="20dip" 63 android:paddingLeft="14dip" 64 android:paddingRight="14dip" 65 android:src="@drawable/ic_web_holo_dark" 66 android:layout_gravity="center" /> 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" 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|flagNoExtractUi|flagNoFullscreen" 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" 95 android:contentDescription="@string/accessibility_button_addbookmark" 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" 102 android:contentDescription="@string/accessibility_button_clear" 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" 112 android:contentDescription="@string/accessibility_button_go" 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" 119 android:contentDescription="@string/accessibility_button_voice" 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" 127 android:contentDescription="@string/accessibility_button_search" 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" 136 android:contentDescription="@string/accessibility_button_bookmarks" 137 android:src="@drawable/ic_bookmarks_history_holo_dark" /> 138 </com.android.browser.NavigationBarTablet> 139