Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 1 | <?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 Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 22 | <com.android.browser.DraggableFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 23 | android:id="@+id/draggable_mainframe" |
Steve Block | 8844d19 | 2009-09-29 13:14:41 +0100 | [diff] [blame] | 24 | android:orientation="vertical" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent"> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 27 | |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 28 | <ImageView android:id="@+id/navview_opacity" |
| 29 | android:layout_gravity="top" |
| 30 | android:scaleType="fitStart" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 31 | android:background="@color/black" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 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 Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 43 | <!-- Wrapper layout for the WebView, which must be in a FrameLayout. --> |
| 44 | <FrameLayout android:id="@+id/webview_wrapper" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 45 | android:layout_width="match_parent" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 46 | android:layout_height="match_parent" |
Steve Block | 8844d19 | 2009-09-29 13:14:41 +0100 | [diff] [blame] | 47 | android:layout_weight="1" /> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 48 | |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 49 | <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 | |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 64 | <!-- Edge setup screen --> |
| 65 | |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 66 | <LinearLayout android:id="@+id/edge_sliding_settings" |
| 67 | android:layout_width="match_parent" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 68 | android:layout_height="fill_parent" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 69 | android:visibility="gone" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 70 | android:background="@color/mynav_primary" |
| 71 | android:layout_gravity="top" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 72 | android:orientation="vertical"> |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 73 | <ImageView |
| 74 | android:layout_width="match_parent" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 75 | android:layout_height="wrap_content" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 76 | android:paddingTop="32dp" |
| 77 | android:layout_alignParentTop="true" |
| 78 | android:layout_centerHorizontal="true" |
| 79 | android:adjustViewBounds="true" |
| 80 | android:src="@drawable/edge_header"/> |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 81 | |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 82 | <FrameLayout android:id="@+id/edge_title_layout" |
| 83 | android:layout_width="match_parent" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 84 | android:layout_height="wrap_content" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 85 | android:paddingTop="16dp"> |
| 86 | <TextView |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 87 | android:layout_width="wrap_content" |
| 88 | android:layout_height="wrap_content" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 89 | android:textSize="32sp" |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 90 | android:textColor="@color/white" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 91 | 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 Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 100 | android:layout_width="wrap_content" |
| 101 | android:layout_height="wrap_content" |
jrizzoli | f3f50e2 | 2015-10-27 22:12:54 +0100 | [diff] [blame] | 102 | 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 Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 153 | </LinearLayout> |
| 154 | |
Pankaj Garg | 1c13cab | 2015-05-12 11:52:17 -0700 | [diff] [blame] | 155 | </com.android.browser.DraggableFrameLayout> |