blob: 0c25901086ac247d268834fccf74c973e42fa9b7 [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"
31 android:background="@android:color/black"
32 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
64 <LinearLayout android:id="@+id/edge_sliding_settings"
65 android:layout_width="match_parent"
66 android:layout_height="match_parent"
67 android:visibility="gone"
68 android:background="#00838f"
69 android:alpha="0.85"
70 android:orientation="vertical">
71 <TextView
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_gravity="center"
75 android:gravity="center_horizontal|center_vertical"
76 android:layout_weight=".25"
77 android:textSize="32sp"
78 android:textColor="@color/white"
79 android:text="@string/pref_edge_swipe_title"/>
80
81 <TextView
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_gravity="center"
85 android:textSize="21sp"
86 android:textColor="@color/white"
87 android:text="@string/pref_edge_swipe_option_msg"/>
88
89 <RadioGroup
90 android:id="@+id/edge_sliding_settings_options"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:layout_weight=".25"
94 android:layout_gravity="center_horizontal"
95 android:padding="10dp"
96 android:orientation="vertical">
97 <RadioButton
98 android:id="@+id/edge_sliding_settings_options_temporal"
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"
101 android:text="@string/pref_temporal_edge_swipe"
102 android:textColor="@color/white"
103 android:drawableEnd="@drawable/deco_swipe_temporal"
104 android:textSize="18sp"
105 android:padding="10dp"/>
106 <RadioButton
107 android:id="@+id/edge_sliding_settings_options_spatial"
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:text="@string/pref_spatial_edge_swipe"
111 android:textColor="@color/white"
112 android:drawableEnd="@drawable/deco_swipe_spatial"
113 android:textSize="18sp"
114 android:visibility="gone"
115 android:padding="10dp"/>
116 <RadioButton
117 android:id="@+id/edge_sliding_settings_options_disabled"
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
120 android:text="@string/pref_disable_edge_swipe"
121 android:textColor="@color/white"
122 android:textSize="18sp"
123 android:padding="10dp"/>
124 </RadioGroup>
125
126 <Button
127 android:id="@+id/edge_sliding_settings_close_btn"
128 android:layout_width="wrap_content"
129 android:layout_height="wrap_content"
130 android:text="@string/pref_edge_swipe_option_close"
131 android:padding="10dp"
132 android:gravity="center_horizontal|center_vertical"
133 android:layout_gravity="center"
134 style="@android:style/Widget.Holo.Button.Borderless"/>
135
136 </LinearLayout>
137
Steve Block2bc69912009-07-30 14:45:13 +0100138 <!-- Geolocation permissions prompt -->
Grace Kloba50c241e2010-04-20 11:07:50 -0700139 <ViewStub android:id="@+id/geolocation_permissions_prompt"
140 android:layout="@layout/geolocation_permissions_prompt"
Romain Guy15b8ec62010-01-08 15:06:43 -0800141 android:layout_width="match_parent"
Steve Block2bc69912009-07-30 14:45:13 +0100142 android:layout_height="wrap_content" />
143
Pankaj Garg1c13cab2015-05-12 11:52:17 -0700144
145</com.android.browser.DraggableFrameLayout>