blob: b5f865b9d1afcb5bab8dc22784687946d8f8562d [file] [log] [blame]
John Reck0f602f32011-07-07 15:38:43 -07001<?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-->
Enrico Ros1f5a0952014-11-18 20:15:48 -080017<com.android.browser.NavigationBarPhone xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
jrizzoli5bba72a2015-08-28 22:03:53 +020020 android:background="@color/primary"
21 android:orientation="horizontal"
22 android:elevation="8dp">
Enrico Ros1f5a0952014-11-18 20:15:48 -080023
John Reck0f602f32011-07-07 15:38:43 -070024 <LinearLayout
John Reck0f602f32011-07-07 15:38:43 -070025 android:layout_width="0dip"
John Reck0f602f32011-07-07 15:38:43 -070026 android:layout_height="match_parent"
Enrico Ros1f5a0952014-11-18 20:15:48 -080027 android:layout_weight="1.0"
John Reck0f602f32011-07-07 15:38:43 -070028 android:gravity="center_vertical"
jrizzoli5bba72a2015-08-28 22:03:53 +020029 android:paddingStart="4dp"
John Reck0f602f32011-07-07 15:38:43 -070030 android:orientation="horizontal">
Enrico Ros1f5a0952014-11-18 20:15:48 -080031
Michael Kolb94ec5272011-08-31 16:23:57 -070032 <ImageView
John Reck419f6b42011-08-16 16:10:51 -070033 android:id="@+id/incognito_icon"
Enrico Rosd6efa972014-12-02 19:49:59 -080034 android:layout_width="wrap_content"
Enrico Ros1f5a0952014-11-18 20:15:48 -080035 android:layout_height="match_parent"
Enrico Rosd6efa972014-12-02 19:49:59 -080036 android:layout_gravity="center"
Vivek Sekhared791da2015-02-22 12:39:05 -080037 android:layout_marginStart="8dp"
Enrico Rosd6efa972014-12-02 19:49:59 -080038 android:src="@drawable/ic_deco_incognito_normal"
Enrico Ros1f5a0952014-11-18 20:15:48 -080039 android:visibility="gone" />
40
Pankaj Garg66f8cef2015-07-07 17:29:03 -070041 <com.android.browser.SiteTileView
42 android:id="@+id/favicon_view"
43 android:layout_width="44dp"
44 android:layout_height="44dp"
45 android:paddingStart="6dp"
46 android:paddingEnd="6dp"
47 android:contentDescription="@string/page_info"/>
Enrico Ros1f5a0952014-11-18 20:15:48 -080048
jrizzoli5bba72a2015-08-28 22:03:53 +020049 <!-- Cosmetic separator -->
50 <View
51 android:layout_width="1dp"
52 android:layout_height="42dp"
53 android:paddingTop="4dp"
54 android:paddingBottom="4dp"
55 android:paddingEnd="2dp"
56 android:background="#55FAFAFA" />
57
58
John Reck0f602f32011-07-07 15:38:43 -070059 <ImageView
60 android:id="@+id/stop"
Enrico Ros1f5a0952014-11-18 20:15:48 -080061 style="@style/NavButton"
John Reck0f602f32011-07-07 15:38:43 -070062 android:layout_width="wrap_content"
John Reck0f602f32011-07-07 15:38:43 -070063 android:layout_gravity="center_vertical"
Michael Kolb30adae62011-07-29 13:37:05 -070064 android:contentDescription="@string/accessibility_button_stop"
Vivek Sekhared791da2015-02-22 12:39:05 -080065 android:paddingStart="6dp"
66 android:paddingEnd="6dp"
Sagar Dhawan84ef4442015-07-29 12:08:10 -070067 android:visibility="gone"
jrizzoli5bba72a2015-08-28 22:03:53 +020068 android:src="@drawable/ic_action_stop_normal_inverted" />
Enrico Ros1f5a0952014-11-18 20:15:48 -080069
Bijan Amirzada41242f22014-03-21 12:12:18 -070070 <com.android.browser.UrlInputView
John Reck0f602f32011-07-07 15:38:43 -070071 android:id="@+id/url"
Enrico Ros1f5a0952014-11-18 20:15:48 -080072 style="@style/Suggestions"
John Reck0f602f32011-07-07 15:38:43 -070073 android:layout_width="0dip"
John Reck0f602f32011-07-07 15:38:43 -070074 android:layout_height="match_parent"
Enrico Ros1f5a0952014-11-18 20:15:48 -080075 android:layout_weight="1.0"
76 android:background="@null"
77 android:ellipsize="end"
John Reck0f602f32011-07-07 15:38:43 -070078 android:fadingEdge="horizontal"
79 android:fadingEdgeLength="24dip"
Enrico Ros1f5a0952014-11-18 20:15:48 -080080 android:focusable="true"
John Reck0f602f32011-07-07 15:38:43 -070081 android:hint="@string/search_hint"
Michael Kolb0d7c69e2011-08-19 09:26:53 -070082 android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
jrizzoli5bba72a2015-08-28 22:03:53 +020083 android:theme="@style/Widget.UrlInputView"
Enrico Ros1f5a0952014-11-18 20:15:48 -080084 android:inputType="textUri"
85 android:lines="1"
Vivek Sekhared791da2015-02-22 12:39:05 -080086 android:paddingStart="4dp"
87 android:paddingEnd="6dp"
Enrico Ros1f5a0952014-11-18 20:15:48 -080088 android:scrollHorizontally="true"
89 android:singleLine="true"
Enrico Rosd6efa972014-12-02 19:49:59 -080090 android:fontFamily="sans-serif-condensed"
Enrico Ros1f5a0952014-11-18 20:15:48 -080091 android:textAppearance="?android:attr/textAppearanceMedium" />
92
John Reck0f602f32011-07-07 15:38:43 -070093 <ImageView
Michael Kolb0b129122012-06-04 16:31:58 -070094 android:id="@+id/voice"
Enrico Ros1f5a0952014-11-18 20:15:48 -080095 style="@style/NavButton"
Michael Kolb0b129122012-06-04 16:31:58 -070096 android:layout_width="wrap_content"
Michael Kolb0b129122012-06-04 16:31:58 -070097 android:contentDescription="@string/accessibility_button_voice"
Enrico Rosd6efa972014-12-02 19:49:59 -080098 android:src="@drawable/ic_action_microphone_normal"
Enrico Ros1f5a0952014-11-18 20:15:48 -080099 android:visibility="gone" />
100
101 <ImageButton
102 android:id="@+id/clear"
103 style="@style/NavButton"
104 android:layout_width="wrap_content"
Michael Kolb94ec5272011-08-31 16:23:57 -0700105 android:contentDescription="@string/accessibility_button_clear"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800106 android:src="@drawable/ic_action_stop"
Michael Kolb94ec5272011-08-31 16:23:57 -0700107 android:visibility="gone" />
John Reck0f602f32011-07-07 15:38:43 -0700108 </LinearLayout>
Enrico Ros1f5a0952014-11-18 20:15:48 -0800109
110 <FrameLayout
John Reck0f602f32011-07-07 15:38:43 -0700111 android:layout_height="match_parent"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800112 android:layout_width="wrap_content">
113
114 <ImageButton
115 android:id="@+id/tab_switcher"
116 style="@style/NavButton"
117 android:layout_width="wrap_content"
Michael Kolb30adae62011-07-29 13:37:05 -0700118 android:contentDescription="@string/accessibility_button_navscreen"
Enrico Ros1f5a0952014-11-18 20:15:48 -0800119 android:src="@drawable/ic_action_tabswitcher" />
120
121 <TextView
122 android:id="@+id/tab_switcher_text"
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:layout_gravity="center"
Enrico Rosd6efa972014-12-02 19:49:59 -0800126 android:clickable="false"
jrizzoli5bba72a2015-08-28 22:03:53 +0200127 android:paddingBottom="1dp"
128 android:paddingEnd="1dp"
129 android:textColor="@color/white"
Enrico Rosd6efa972014-12-02 19:49:59 -0800130 android:textSize="13dp"
131 android:textStyle="bold" />
Enrico Ros1f5a0952014-11-18 20:15:48 -0800132 </FrameLayout>
133
John Reck0f602f32011-07-07 15:38:43 -0700134 <ImageButton
Axesh R. Ajmera2e241242014-05-19 15:53:38 -0700135 android:id="@+id/more_browser_settings"
jrizzoli5bba72a2015-08-28 22:03:53 +0200136 style="@style/OverflowButtonInverted" />
Bijan Amirzada41242f22014-03-21 12:12:18 -0700137</com.android.browser.NavigationBarPhone>