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="@color/screen_pinning_request_bg" >
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
47        <ImageView
48            android:id="@+id/screen_pinning_back_bg_light"
49            android:layout_width="match_parent"
50            android:layout_height="match_parent"
51            android:scaleType="matrix"
52            android:src="@drawable/screen_pinning_light_bg_circ" />
53
54        <ImageView
55            android:id="@+id/screen_pinning_back_bg"
56            android:layout_width="match_parent"
57            android:layout_height="match_parent"
58            android:paddingEnd="@dimen/screen_pinning_request_inner_padding"
59            android:paddingStart="@dimen/screen_pinning_request_inner_padding"
60            android:paddingTop="@dimen/screen_pinning_request_inner_padding"
61            android:scaleType="matrix"
62            android:src="@drawable/screen_pinning_bg_circ" />
63
64        <ImageView
65            android:layout_width="match_parent"
66            android:layout_height="match_parent"
67            android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
68            android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
69            android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
70            android:scaleType="center"
71            android:src="@drawable/ic_sysbar_back" />
72    </FrameLayout>
73
74    <View
75        android:layout_width="match_parent"
76        android:layout_height="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_width="@dimen/screen_pinning_request_button_width"
83        android:layout_height="@dimen/screen_pinning_request_button_height"
84        android:layout_weight="0"
85        android:paddingStart="@dimen/screen_pinning_request_frame_padding"
86        android:paddingEnd="@dimen/screen_pinning_request_frame_padding" >
87
88        <ImageView
89            android:layout_width="match_parent"
90            android:layout_height="match_parent"
91            android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
92            android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
93            android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
94            android:scaleType="center"
95            android:src="@drawable/ic_sysbar_home" />
96    </FrameLayout>
97
98    <View
99        android:layout_width="match_parent"
100        android:layout_height="match_parent"
101        android:layout_weight="1"
102        android:visibility="invisible" />
103
104    <FrameLayout
105        android:id="@+id/screen_pinning_recents_group"
106        android:layout_width="@dimen/screen_pinning_request_button_width"
107        android:layout_height="@dimen/screen_pinning_request_button_height"
108        android:layout_weight="0"
109        android:paddingStart="@dimen/screen_pinning_request_frame_padding"
110        android:paddingEnd="@dimen/screen_pinning_request_frame_padding" >
111
112        <ImageView
113            android:layout_width="match_parent"
114            android:layout_height="match_parent"
115            android:scaleType="matrix"
116            android:src="@drawable/screen_pinning_light_bg_circ" />
117
118        <ImageView
119            android:layout_width="match_parent"
120            android:layout_height="match_parent"
121            android:paddingEnd="@dimen/screen_pinning_request_inner_padding"
122            android:paddingStart="@dimen/screen_pinning_request_inner_padding"
123            android:paddingTop="@dimen/screen_pinning_request_inner_padding"
124            android:scaleType="matrix"
125            android:src="@drawable/screen_pinning_bg_circ" />
126
127        <ImageView
128            android:layout_width="match_parent"
129            android:layout_height="match_parent"
130            android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding"
131            android:paddingStart="@dimen/screen_pinning_request_nav_side_padding"
132            android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding"
133            android:scaleType="center"
134            android:src="@drawable/ic_sysbar_recent" />
135    </FrameLayout>
136
137    <View
138        android:layout_width="@dimen/screen_pinning_request_side_width"
139        android:layout_height="match_parent"
140        android:layout_weight="0"
141        android:visibility="invisible" />
142
143</LinearLayout>
144