1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<com.android.launcher3.AppWidgetResizeFrame 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:padding="0dp"> 22 23 <FrameLayout 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" > 26 27 <!-- Frame --> 28 <ImageView 29 android:id="@+id/widget_resize_frame" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:layout_gravity="center" 33 android:layout_margin="@dimen/resize_frame_margin" 34 android:src="@drawable/widget_resize_frame" /> 35 36 <!-- Left --> 37 <ImageView 38 android:id="@+id/widget_resize_left_handle" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_gravity="left|center_vertical" 42 android:layout_marginLeft="@dimen/widget_handle_margin" 43 android:src="@drawable/ic_widget_resize_handle" 44 android:tint="?attr/workspaceAccentColor" /> 45 46 <!-- Top --> 47 <ImageView 48 android:id="@+id/widget_resize_top_handle" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_gravity="top|center_horizontal" 52 android:layout_marginTop="@dimen/widget_handle_margin" 53 android:src="@drawable/ic_widget_resize_handle" 54 android:tint="?attr/workspaceAccentColor" /> 55 56 <!-- Right --> 57 <ImageView 58 android:id="@+id/widget_resize_right_handle" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_gravity="right|center_vertical" 62 android:layout_marginRight="@dimen/widget_handle_margin" 63 android:src="@drawable/ic_widget_resize_handle" 64 android:tint="?attr/workspaceAccentColor" /> 65 66 <!-- Bottom --> 67 <ImageView 68 android:id="@+id/widget_resize_bottom_handle" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_gravity="bottom|center_horizontal" 72 android:layout_marginBottom="@dimen/widget_handle_margin" 73 android:src="@drawable/ic_widget_resize_handle" 74 android:tint="?attr/workspaceAccentColor" /> 75 76 <ImageButton 77 android:id="@+id/widget_reconfigure_button" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:padding="@dimen/widget_reconfigure_button_padding" 81 android:layout_gravity="bottom|end" 82 android:layout_marginBottom="@dimen/widget_reconfigure_button_margin" 83 android:layout_marginEnd="@dimen/widget_reconfigure_button_margin" 84 android:src="@drawable/widget_reconfigure_button_frame" 85 android:background="?android:attr/selectableItemBackground" 86 android:visibility="gone" 87 android:contentDescription="@string/widget_reconfigure_button_content_description" /> 88 89 </FrameLayout> 90</com.android.launcher3.AppWidgetResizeFrame>