blob: f9308cdc504e2b061e56bdc4aedc233c476c9d59 [file] [log] [blame]
Jason Monke763a262017-03-28 16:25:08 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/**
4 * Copyright (c) 2014, The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<!-- Note all width/height dimensions are switched here to handle landspace
20 rather than duplicating them all.
21 This layout matches the structure of navigation_bar.xml (rot90) and
22 will need to be kept up to sync with changes there.
23-->
24<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
25 android:id="@+id/screen_pinning_buttons"
26 android:layout_height="match_parent"
27 android:layout_width="@dimen/screen_pinning_request_button_height"
28 android:background="?android:attr/colorAccent"
29 android:orientation="vertical">
30
31 <View
32 android:layout_height="@dimen/screen_pinning_request_side_width"
33 android:layout_width="match_parent"
34 android:layout_weight="0"
35 android:visibility="invisible" />
36
37 <FrameLayout
38 android:id="@+id/screen_pinning_back_group"
39 android:layout_height="@dimen/screen_pinning_request_button_width"
40 android:layout_width="@dimen/screen_pinning_request_button_height"
41 android:layout_weight="0"
Matthew Ng32afc622018-06-12 14:26:07 -070042 android:theme="@style/ScreenPinningRequestTheme">
Jason Monke763a262017-03-28 16:25:08 -040043
44 <ImageView
45 android:id="@+id/screen_pinning_back_bg_light"
46 android:layout_height="match_parent"
47 android:layout_width="match_parent"
48 android:scaleType="matrix"
49 android:layout_marginLeft="@dimen/screen_pinning_request_seascape_padding_negative"
50 android:src="@drawable/screen_pinning_light_bg_circ" />
51
52 <ImageView
53 android:id="@+id/screen_pinning_back_bg"
54 android:layout_height="match_parent"
55 android:layout_width="match_parent"
56 android:scaleType="matrix"
57 android:layout_marginLeft="@dimen/screen_pinning_request_seascape_button_offset"
58 android:paddingRight="@dimen/screen_pinning_request_inner_padding"
59 android:paddingTop="@dimen/screen_pinning_request_inner_padding"
60 android:paddingBottom="@dimen/screen_pinning_request_inner_padding"
61 android:src="@drawable/screen_pinning_bg_circ" />
62
63 <ImageView
Matthew Ng87cbf342018-02-15 12:21:18 -080064 android:id="@+id/screen_pinning_back_icon"
Jason Monke763a262017-03-28 16:25:08 -040065 android:layout_height="match_parent"
66 android:layout_width="match_parent"
67 android:scaleType="center"
68 android:paddingRight="@dimen/screen_pinning_request_nav_icon_padding"
69 android:paddingTop="@dimen/screen_pinning_request_nav_side_padding"
70 android:paddingBottom="@dimen/screen_pinning_request_nav_side_padding"
71 android:src="@drawable/ic_sysbar_back" />
72 </FrameLayout>
73
74 <View
75 android:layout_height="match_parent"
76 android:layout_width="match_parent"
77 android:layout_weight="1"
78 android:visibility="invisible" />
79
80 <FrameLayout
81 android:id="@+id/screen_pinning_home_group"
82 android:layout_height="@dimen/screen_pinning_request_button_width"
83 android:layout_width="@dimen/screen_pinning_request_button_height"
Matthew Ng9c3bce52018-02-01 22:00:31 +000084 android:layout_weight="0"
Matthew Ng32afc622018-06-12 14:26:07 -070085 android:theme="@style/ScreenPinningRequestTheme" >
Matthew Ng9c3bce52018-02-01 22:00:31 +000086
87 <ImageView
88 android:id="@+id/screen_pinning_home_bg_light"
89 android:layout_height="match_parent"
90 android:layout_width="match_parent"
91 android:scaleType="matrix"
92 android:layout_marginLeft="@dimen/screen_pinning_request_seascape_padding_negative"
93 android:src="@drawable/screen_pinning_light_bg_circ" />
94
95 <ImageView
96 android:id="@+id/screen_pinning_home_bg"
97 android:layout_height="match_parent"
98 android:layout_width="match_parent"
99 android:scaleType="matrix"
100 android:layout_marginLeft="@dimen/screen_pinning_request_seascape_button_offset"
101 android:paddingRight="@dimen/screen_pinning_request_inner_padding"
102 android:paddingTop="@dimen/screen_pinning_request_inner_padding"
103 android:paddingBottom="@dimen/screen_pinning_request_inner_padding"
104 android:src="@drawable/screen_pinning_bg_circ" />
Jason Monke763a262017-03-28 16:25:08 -0400105
106 <ImageView
Matthew Ng87cbf342018-02-15 12:21:18 -0800107 android:id="@+id/screen_pinning_home_icon"
Jason Monke763a262017-03-28 16:25:08 -0400108 android:layout_height="match_parent"
109 android:layout_width="match_parent"
110 android:scaleType="center"
111 android:paddingRight="@dimen/screen_pinning_request_nav_icon_padding"
112 android:paddingTop="@dimen/screen_pinning_request_nav_side_padding"
113 android:paddingBottom="@dimen/screen_pinning_request_nav_side_padding"
114 android:src="@drawable/ic_sysbar_home" />
115 </FrameLayout>
116
117 <View
118 android:layout_height="match_parent"
119 android:layout_width="match_parent"
120 android:layout_weight="1"
121 android:visibility="invisible" />
122
123 <FrameLayout
124 android:id="@+id/screen_pinning_recents_group"
125 android:layout_height="@dimen/screen_pinning_request_button_width"
126 android:layout_width="@dimen/screen_pinning_request_button_height"
127 android:layout_weight="0"
Matthew Ng32afc622018-06-12 14:26:07 -0700128 android:theme="@style/ScreenPinningRequestTheme">
Jason Monke763a262017-03-28 16:25:08 -0400129
130 <ImageView
131 android:id="@+id/screen_pinning_recents_bg_light"
132 android:layout_height="match_parent"
133 android:layout_width="match_parent"
134 android:scaleType="matrix"
135 android:layout_marginLeft="@dimen/screen_pinning_request_seascape_padding_negative"
136 android:src="@drawable/screen_pinning_light_bg_circ" />
137
138 <ImageView
139 android:id="@+id/screen_pinning_recents_bg"
140 android:layout_height="match_parent"
141 android:layout_width="match_parent"
142 android:scaleType="matrix"
143 android:layout_marginLeft="@dimen/screen_pinning_request_seascape_button_offset"
144 android:paddingRight="@dimen/screen_pinning_request_inner_padding"
145 android:paddingTop="@dimen/screen_pinning_request_inner_padding"
146 android:paddingBottom="@dimen/screen_pinning_request_inner_padding"
147 android:src="@drawable/screen_pinning_bg_circ" />
148
149 <ImageView
150 android:layout_height="match_parent"
151 android:layout_width="match_parent"
152 android:scaleType="center"
153 android:paddingRight="@dimen/screen_pinning_request_nav_icon_padding"
154 android:paddingTop="@dimen/screen_pinning_request_nav_side_padding"
155 android:paddingBottom="@dimen/screen_pinning_request_nav_side_padding"
156 android:src="@drawable/ic_sysbar_recent" />
157 </FrameLayout>
158
159 <View
160 android:layout_height="@dimen/screen_pinning_request_side_width"
161 android:layout_width="match_parent"
162 android:layout_weight="0"
163 android:visibility="invisible" />
164
165</LinearLayout>