blob: 68eeaf615aa058fe9aacc7b988a191f1715805fe [file] [log] [blame]
Steve Block2bc69912009-07-30 14:45:13 +01001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16
17 This layout provides the structure for a browser tab. A tab contains the
18 WebView and any number of other UI elements specific to that tab.
19 Currently, the only such element is the Geolocation permissions prompt.
20-->
21
Pankaj Garg1c13cab2015-05-12 11:52:17 -070022<com.android.browser.DraggableFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 android:id="@+id/draggable_mainframe"
Steve Block8844d192009-09-29 13:14:41 +010024 android:orientation="vertical"
Romain Guy15b8ec62010-01-08 15:06:43 -080025 android:layout_width="match_parent"
26 android:layout_height="match_parent">
Steve Block2bc69912009-07-30 14:45:13 +010027
Pankaj Garg1c13cab2015-05-12 11:52:17 -070028 <ImageView android:id="@+id/navview_opacity"
29 android:layout_gravity="top"
30 android:scaleType="fitStart"
jrizzolif3f50e22015-10-27 22:12:54 +010031 android:background="@color/black"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070032 android:visibility="gone"
33 android:layout_width="match_parent"
34 android:layout_height="match_parent" />
35
36 <ImageView android:id="@+id/stationary_navview"
37 android:layout_gravity="top"
38 android:scaleType="fitStart"
39 android:visibility="gone"
40 android:layout_width="match_parent"
41 android:layout_height="match_parent" />
42
Steve Block2bc69912009-07-30 14:45:13 +010043 <!-- Wrapper layout for the WebView, which must be in a FrameLayout. -->
44 <FrameLayout android:id="@+id/webview_wrapper"
Romain Guy15b8ec62010-01-08 15:06:43 -080045 android:layout_width="match_parent"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070046 android:layout_height="match_parent"
Steve Block8844d192009-09-29 13:14:41 +010047 android:layout_weight="1" />
Steve Block2bc69912009-07-30 14:45:13 +010048
Pankaj Garg1c13cab2015-05-12 11:52:17 -070049 <ImageView android:id="@+id/sliding_navview"
50 android:layout_gravity="top"
51 android:scaleType="fitStart"
52 android:visibility="gone"
53 android:layout_width="match_parent"
54 android:layout_height="match_parent" />
55
56 <ImageView android:id="@+id/sliding_navview_shadow"
57 android:background="@drawable/left_shade"
58 android:layout_gravity="top"
59 android:scaleType="fitStart"
60 android:visibility="gone"
61 android:layout_width="10dp"
62 android:layout_height="match_parent" />
63
jrizzolif3f50e22015-10-27 22:12:54 +010064 <!-- Edge setup screen -->
65
Pankaj Garg1c13cab2015-05-12 11:52:17 -070066 <LinearLayout android:id="@+id/edge_sliding_settings"
67 android:layout_width="match_parent"
jrizzolif3f50e22015-10-27 22:12:54 +010068 android:layout_height="fill_parent"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070069 android:visibility="gone"
jrizzolif3f50e22015-10-27 22:12:54 +010070 android:background="@color/mynav_primary"
71 android:layout_gravity="top"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070072 android:orientation="vertical">
jrizzolif3f50e22015-10-27 22:12:54 +010073 <ImageView
74 android:layout_width="match_parent"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070075 android:layout_height="wrap_content"
jrizzolif3f50e22015-10-27 22:12:54 +010076 android:paddingTop="32dp"
77 android:layout_alignParentTop="true"
78 android:layout_centerHorizontal="true"
79 android:adjustViewBounds="true"
80 android:src="@drawable/edge_header"/>
Pankaj Garg1c13cab2015-05-12 11:52:17 -070081
jrizzolif3f50e22015-10-27 22:12:54 +010082 <FrameLayout android:id="@+id/edge_title_layout"
83 android:layout_width="match_parent"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070084 android:layout_height="wrap_content"
jrizzolif3f50e22015-10-27 22:12:54 +010085 android:paddingTop="16dp">
86 <TextView
Pankaj Garg1c13cab2015-05-12 11:52:17 -070087 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
jrizzolif3f50e22015-10-27 22:12:54 +010089 android:textSize="32sp"
Pankaj Garg1c13cab2015-05-12 11:52:17 -070090 android:textColor="@color/white"
jrizzolif3f50e22015-10-27 22:12:54 +010091 android:paddingStart="16dp"
92 android:paddingEnd="16dp"
93 android:layout_gravity="top"
94 android:text="@string/pref_edge_swipe_title"/>
95 </FrameLayout>
96 <LinearLayout android:id="@+id/edge_content_layout"
97 android:paddingStart="16dp"
98 android:paddingEnd="16dp"
99 android:paddingTop="16dp"
Pankaj Garg1c13cab2015-05-12 11:52:17 -0700100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
jrizzolif3f50e22015-10-27 22:12:54 +0100102 android:orientation="vertical"
103 android:layout_gravity="top">
104 <TextView
105 android:layout_width="wrap_content"
106 android:layout_height="wrap_content"
107 android:textColor="@color/white"
108 android:textSize="18sp"
109 android:text="@string/pref_edge_swipe_setup_desc"/>
110 <RadioGroup
111 android:id="@+id/edge_sliding_settings_options"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:orientation="horizontal"
115 android:paddingTop="16dp"
116 android:paddingBottom="24dp">
117 <RadioButton
118 android:id="@+id/edge_sliding_settings_options_temporal"
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:text="@string/pref_edge_enable"
122 android:textColor="@color/white"
123 android:paddingEnd="48dp"
124 android:textSize="18sp"/>
125 <RadioButton
126 android:id="@+id/edge_sliding_settings_options_spatial"
127 android:layout_width="wrap_content"
128 android:layout_height="wrap_content"
129 android:text="@string/pref_edge_enable"
130 android:textColor="@color/white"
131 android:textSize="18sp"
132 android:visibility="gone"/>
133 <RadioButton
134 android:id="@+id/edge_sliding_settings_options_disabled"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:text="@string/pref_edge_disable"
138 android:textColor="@color/white"
139 android:textSize="18sp"/>
140 </RadioGroup>
141 <Button
142 android:id="@+id/edge_sliding_settings_close_btn"
143 android:layout_width="wrap_content"
144 android:layout_height="wrap_content"
145 android:paddingEnd="16dp"
146 android:text="@string/pref_edge_swipe_option_close"
147 android:textColor="@color/mynav_accent"
148 android:textSize="16dp"
149 android:layout_alignParentEnd="true"
150 android:gravity="end"
151 style="@android:style/Widget.Material.Button.Borderless"/>
152 </LinearLayout>
Pankaj Garg1c13cab2015-05-12 11:52:17 -0700153 </LinearLayout>
154
Pankaj Garg1c13cab2015-05-12 11:52:17 -0700155</com.android.browser.DraggableFrameLayout>