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="@style/ScreenPinningRequestTheme"> 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:id="@+id/screen_pinning_back_icon" 67 android:layout_width="match_parent" 68 android:layout_height="match_parent" 69 android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" 70 android:paddingStart="@dimen/screen_pinning_request_nav_side_padding" 71 android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding" 72 android:scaleType="center" 73 android:src="@drawable/ic_sysbar_back" /> 74 </FrameLayout> 75 76 <View 77 android:layout_width="match_parent" 78 android:layout_height="match_parent" 79 android:layout_weight="1" 80 android:visibility="invisible" /> 81 82 <FrameLayout 83 android:id="@+id/screen_pinning_home_group" 84 android:layout_width="@dimen/screen_pinning_request_button_width" 85 android:layout_height="@dimen/screen_pinning_request_button_height" 86 android:layout_weight="0" 87 android:paddingStart="@dimen/screen_pinning_request_frame_padding" 88 android:paddingEnd="@dimen/screen_pinning_request_frame_padding" 89 android:theme="@style/ScreenPinningRequestTheme"> 90 91 <ImageView 92 android:id="@+id/screen_pinning_home_bg_light" 93 android:layout_width="match_parent" 94 android:layout_height="match_parent" 95 android:scaleType="matrix" 96 android:src="@drawable/screen_pinning_light_bg_circ" /> 97 98 <ImageView 99 android:id="@+id/screen_pinning_home_bg" 100 android:layout_width="match_parent" 101 android:layout_height="match_parent" 102 android:paddingEnd="@dimen/screen_pinning_request_inner_padding" 103 android:paddingStart="@dimen/screen_pinning_request_inner_padding" 104 android:paddingTop="@dimen/screen_pinning_request_inner_padding" 105 android:scaleType="matrix" 106 android:src="@drawable/screen_pinning_bg_circ" /> 107 108 <ImageView 109 android:id="@+id/screen_pinning_home_icon" 110 android:layout_width="match_parent" 111 android:layout_height="match_parent" 112 android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" 113 android:paddingStart="@dimen/screen_pinning_request_nav_side_padding" 114 android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding" 115 android:scaleType="center" 116 android:src="@drawable/ic_sysbar_home" /> 117 </FrameLayout> 118 119 <View 120 android:layout_width="match_parent" 121 android:layout_height="match_parent" 122 android:layout_weight="1" 123 android:visibility="invisible" /> 124 125 <FrameLayout 126 android:id="@+id/screen_pinning_recents_group" 127 android:layout_width="@dimen/screen_pinning_request_button_width" 128 android:layout_height="@dimen/screen_pinning_request_button_height" 129 android:layout_weight="0" 130 android:paddingStart="@dimen/screen_pinning_request_frame_padding" 131 android:paddingEnd="@dimen/screen_pinning_request_frame_padding" 132 android:theme="@style/ScreenPinningRequestTheme"> 133 134 <ImageView 135 android:id="@+id/screen_pinning_recents_bg_light" 136 android:layout_width="match_parent" 137 android:layout_height="match_parent" 138 android:scaleType="matrix" 139 android:src="@drawable/screen_pinning_light_bg_circ" /> 140 141 <ImageView 142 android:id="@+id/screen_pinning_recents_bg" 143 android:layout_width="match_parent" 144 android:layout_height="match_parent" 145 android:paddingEnd="@dimen/screen_pinning_request_inner_padding" 146 android:paddingStart="@dimen/screen_pinning_request_inner_padding" 147 android:paddingTop="@dimen/screen_pinning_request_inner_padding" 148 android:scaleType="matrix" 149 android:src="@drawable/screen_pinning_bg_circ" /> 150 151 <ImageView 152 android:layout_width="match_parent" 153 android:layout_height="match_parent" 154 android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" 155 android:paddingStart="@dimen/screen_pinning_request_nav_side_padding" 156 android:paddingTop="@dimen/screen_pinning_request_nav_icon_padding" 157 android:scaleType="center" 158 android:src="@drawable/ic_sysbar_recent" /> 159 </FrameLayout> 160 161 <View 162 android:layout_width="@dimen/screen_pinning_request_side_width" 163 android:layout_height="match_parent" 164 android:layout_weight="0" 165 android:visibility="invisible" /> 166 167</LinearLayout> 168