1<?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<!--
20     This layout matches the structure of navigation_bar.xml and will need
21     to be kept up to sync with changes there.
22     On sw600dp, dimensions are changed to be large enough such that the
23     empty views between the buttons is reduced to nothing, if (nav bar)
24     sw600dp layout is changed then this will likely have to be adjusted
25     and possibly need a sw600dp specific one.
26-->
27<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
28    android:id="@+id/screen_pinning_buttons"
29    android:layout_width="match_parent"
30    android:layout_height="@dimen/screen_pinning_request_button_height"
31    android:background="?android:attr/colorAccent">
32
33    <View
34        android:layout_width="@dimen/screen_pinning_request_side_width"
35        android:layout_height="match_parent"
36        android:layout_weight="0"
37        android:visibility="invisible" />
38
39    <FrameLayout
40        android:id="@+id/screen_pinning_back_group"
41        android:layout_width="@dimen/screen_pinning_request_button_width"
42        android:layout_height="@dimen/screen_pinning_request_button_height"
43        android:layout_weight="0"
44        android:paddingStart="@dimen/screen_pinning_request_frame_padding"
45        android:paddingEnd="@dimen/screen_pinning_request_frame_padding"
46        android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent">
47
48        <ImageView
49            android:id="@+id/screen_pinning_back_bg_light"
50            android:layout_width="match_parent"
51            android:layout_height="match_parent"
52            android:scaleType="matrix"
53            android:src="@drawable/screen_pinning_light_bg_circ" />
54
55        <ImageView
56            android:id="@+id/screen_pinning_back_bg"
57            android:layout_width="match_parent"
58            android:layout_height="match_parent"
59            android:paddingEnd="@dimen/screen_pinning_request_inner_padding"
60            android:paddingStart="@dimen/screen_pinning_request_inner_padding"
61            android:paddingTop="@dimen/screen_pinning_request_inner_padding"
62            android:scaleType="matrix"
63            android:src="@drawable/screen_pinning_bg_circ" />
64
65        <ImageView
66            android:layout_width="match_parent"
67            android:layout_height="match_parent"
68            android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
69            android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
70            android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
71            android:scaleType="center"
72            android:src="@drawable/ic_sysbar_back" />
73    </FrameLayout>
74
75    <View
76        android:layout_width="match_parent"
77        android:layout_height="match_parent"
78        android:layout_weight="1"
79        android:visibility="invisible" />
80
81    <FrameLayout
82        android:id="@+id/screen_pinning_home_group"
83        android:layout_width="@dimen/screen_pinning_request_button_width"
84        android:layout_height="@dimen/screen_pinning_request_button_height"
85        android:layout_weight="0"
86        android:paddingStart="@dimen/screen_pinning_request_frame_padding"
87        android:paddingEnd="@dimen/screen_pinning_request_frame_padding" >
88
89        <ImageView
90            android:layout_width="match_parent"
91            android:layout_height="match_parent"
92            android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
93            android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
94            android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
95            android:scaleType="center"
96            android:src="@drawable/ic_sysbar_home" />
97    </FrameLayout>
98
99    <View
100        android:layout_width="match_parent"
101        android:layout_height="match_parent"
102        android:layout_weight="1"
103        android:visibility="invisible" />
104
105    <FrameLayout
106        android:id="@+id/screen_pinning_recents_group"
107        android:layout_width="@dimen/screen_pinning_request_button_width"
108        android:layout_height="@dimen/screen_pinning_request_button_height"
109        android:layout_weight="0"
110        android:paddingStart="@dimen/screen_pinning_request_frame_padding"
111        android:paddingEnd="@dimen/screen_pinning_request_frame_padding"
112        android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent">
113
114        <ImageView
115            android:id="@+id/screen_pinning_recents_bg_light"
116            android:layout_width="match_parent"
117            android:layout_height="match_parent"
118            android:scaleType="matrix"
119            android:src="@drawable/screen_pinning_light_bg_circ" />
120
121        <ImageView
122            android:id="@+id/screen_pinning_recents_bg"
123            android:layout_width="match_parent"
124            android:layout_height="match_parent"
125            android:paddingEnd="@dimen/screen_pinning_request_inner_padding"
126            android:paddingStart="@dimen/screen_pinning_request_inner_padding"
127            android:paddingTop="@dimen/screen_pinning_request_inner_padding"
128            android:scaleType="matrix"
129            android:src="@drawable/screen_pinning_bg_circ" />
130
131        <ImageView
132            android:layout_width="match_parent"
133            android:layout_height="match_parent"
134            android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
135            android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
136            android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
137            android:scaleType="center"
138            android:src="@drawable/ic_sysbar_recent" />
139    </FrameLayout>
140
141    <View
142        android:layout_width="@dimen/screen_pinning_request_side_width"
143        android:layout_height="match_parent"
144        android:layout_weight="0"
145        android:visibility="invisible" />
146
147</LinearLayout>
148