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<!-- 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_recents_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" 42 android:theme="@style/ScreenPinningRequestTheme"> 43 44 <ImageView 45 android:id="@+id/screen_pinning_recents_bg_light" 46 android:layout_height="match_parent" 47 android:layout_width="match_parent" 48 android:scaleType="matrix" 49 android:src="@drawable/screen_pinning_light_bg_circ" /> 50 51 <ImageView 52 android:id="@+id/screen_pinning_recents_bg" 53 android:layout_height="match_parent" 54 android:layout_width="match_parent" 55 android:scaleType="matrix" 56 android:paddingLeft="@dimen/screen_pinning_request_inner_padding" 57 android:paddingTop="@dimen/screen_pinning_request_inner_padding" 58 android:paddingBottom="@dimen/screen_pinning_request_inner_padding" 59 android:src="@drawable/screen_pinning_bg_circ" /> 60 61 <ImageView 62 android:layout_height="match_parent" 63 android:layout_width="match_parent" 64 android:scaleType="center" 65 android:paddingLeft="@dimen/screen_pinning_request_nav_icon_padding" 66 android:paddingTop="@dimen/screen_pinning_request_nav_side_padding" 67 android:paddingBottom="@dimen/screen_pinning_request_nav_side_padding" 68 android:src="@drawable/ic_sysbar_recent" /> 69 </FrameLayout> 70 71 <View 72 android:layout_height="match_parent" 73 android:layout_width="match_parent" 74 android:layout_weight="1" 75 android:visibility="invisible" /> 76 77 <FrameLayout 78 android:id="@+id/screen_pinning_home_group" 79 android:layout_height="@dimen/screen_pinning_request_button_width" 80 android:layout_width="@dimen/screen_pinning_request_button_height" 81 android:layout_weight="0" 82 android:theme="@style/ScreenPinningRequestTheme"> 83 84 <ImageView 85 android:id="@+id/screen_pinning_home_bg_light" 86 android:layout_height="match_parent" 87 android:layout_width="match_parent" 88 android:scaleType="matrix" 89 android:src="@drawable/screen_pinning_light_bg_circ" /> 90 91 <ImageView 92 android:id="@+id/screen_pinning_home_bg" 93 android:layout_height="match_parent" 94 android:layout_width="match_parent" 95 android:scaleType="matrix" 96 android:paddingLeft="@dimen/screen_pinning_request_inner_padding" 97 android:paddingTop="@dimen/screen_pinning_request_inner_padding" 98 android:paddingBottom="@dimen/screen_pinning_request_inner_padding" 99 android:src="@drawable/screen_pinning_bg_circ" /> 100 101 <ImageView 102 android:id="@+id/screen_pinning_home_icon" 103 android:layout_height="match_parent" 104 android:layout_width="match_parent" 105 android:scaleType="center" 106 android:paddingLeft="@dimen/screen_pinning_request_nav_icon_padding" 107 android:paddingTop="@dimen/screen_pinning_request_nav_side_padding" 108 android:paddingBottom="@dimen/screen_pinning_request_nav_side_padding" 109 android:src="@drawable/ic_sysbar_home" /> 110 </FrameLayout> 111 112 <View 113 android:layout_height="match_parent" 114 android:layout_width="match_parent" 115 android:layout_weight="1" 116 android:visibility="invisible" /> 117 118 <FrameLayout 119 android:id="@+id/screen_pinning_back_group" 120 android:layout_height="@dimen/screen_pinning_request_button_width" 121 android:layout_width="@dimen/screen_pinning_request_button_height" 122 android:layout_weight="0" 123 android:theme="@style/ScreenPinningRequestTheme"> 124 125 <ImageView 126 android:id="@+id/screen_pinning_back_bg_light" 127 android:layout_height="match_parent" 128 android:layout_width="match_parent" 129 android:scaleType="matrix" 130 android:src="@drawable/screen_pinning_light_bg_circ" /> 131 132 <ImageView 133 android:id="@+id/screen_pinning_back_bg" 134 android:layout_height="match_parent" 135 android:layout_width="match_parent" 136 android:scaleType="matrix" 137 android:paddingLeft="@dimen/screen_pinning_request_inner_padding" 138 android:paddingTop="@dimen/screen_pinning_request_inner_padding" 139 android:paddingBottom="@dimen/screen_pinning_request_inner_padding" 140 android:src="@drawable/screen_pinning_bg_circ" /> 141 142 <ImageView 143 android:id="@+id/screen_pinning_back_icon" 144 android:layout_height="match_parent" 145 android:layout_width="match_parent" 146 android:scaleType="center" 147 android:paddingLeft="@dimen/screen_pinning_request_nav_icon_padding" 148 android:paddingTop="@dimen/screen_pinning_request_nav_side_padding" 149 android:paddingBottom="@dimen/screen_pinning_request_nav_side_padding" 150 android:src="@drawable/ic_sysbar_back" /> 151 </FrameLayout> 152 153 <View 154 android:layout_height="@dimen/screen_pinning_request_side_width" 155 android:layout_width="match_parent" 156 android:layout_weight="0" 157 android:visibility="invisible" /> 158 159</LinearLayout> 160