• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:background="@drawable/widget_resize_shadow"
22    android:foreground="@drawable/widget_resize_frame"
23    android:foregroundTint="?attr/workspaceTextColor"
24    android:padding="0dp">
25
26    <FrameLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent" >
29
30        <!-- Left -->
31        <ImageView
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:layout_gravity="left|center_vertical"
35            android:layout_marginLeft="@dimen/widget_handle_margin"
36            android:src="@drawable/ic_widget_resize_handle"
37            android:tint="?attr/workspaceTextColor" />
38
39        <!-- Top -->
40        <ImageView
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_gravity="top|center_horizontal"
44            android:layout_marginTop="@dimen/widget_handle_margin"
45            android:src="@drawable/ic_widget_resize_handle"
46            android:tint="?attr/workspaceTextColor" />
47
48        <!-- Right -->
49        <ImageView
50            android:layout_width="wrap_content"
51            android:layout_height="wrap_content"
52            android:layout_gravity="right|center_vertical"
53            android:layout_marginRight="@dimen/widget_handle_margin"
54            android:src="@drawable/ic_widget_resize_handle"
55            android:tint="?attr/workspaceTextColor" />
56
57        <!-- Bottom -->
58        <ImageView
59            android:layout_width="wrap_content"
60            android:layout_height="wrap_content"
61            android:layout_gravity="bottom|center_horizontal"
62            android:layout_marginBottom="@dimen/widget_handle_margin"
63            android:src="@drawable/ic_widget_resize_handle"
64            android:tint="?attr/workspaceTextColor" />
65
66    </FrameLayout>
67</com.android.launcher3.AppWidgetResizeFrame>