diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-09-28 13:43:24 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-10-02 16:18:52 -0700 |
commit | 37920966888587900885c88a63785cb16567684c (patch) | |
tree | d4c0688a9d703afb1099061f2f316ac4752dd0ff /res | |
parent | 326403e958344751539cefec62ecbc6d28abd2ce (diff) | |
download | android_packages_apps_Trebuchet-37920966888587900885c88a63785cb16567684c.tar.gz android_packages_apps_Trebuchet-37920966888587900885c88a63785cb16567684c.tar.bz2 android_packages_apps_Trebuchet-37920966888587900885c88a63785cb16567684c.zip |
Allowing the widgetBottomSheet to be dragged
even when the touch is started from outside the panel
Removing various instanceOf checks in onNewIntent and onBackPress
and moving all the corresponding logging in the FloatingView
This simplifies handling of panel specific log and avoids
missing a particular panel type in the if-else statement.
Bug: 64751884
Bug: 64751923
Change-Id: I98f5aae18560a64be73c9efcf495479740d49a00
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/app_widget_resize_frame.xml | 79 |
1 files changed, 42 insertions, 37 deletions
diff --git a/res/layout/app_widget_resize_frame.xml b/res/layout/app_widget_resize_frame.xml index 874fecccf..12561b634 100644 --- a/res/layout/app_widget_resize_frame.xml +++ b/res/layout/app_widget_resize_frame.xml @@ -21,42 +21,47 @@ android:background="@drawable/widget_resize_shadow" android:foreground="@drawable/widget_resize_frame" android:foregroundTint="?attr/workspaceTextColor" - android:padding="0dp" > - - <!-- Left --> - <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="left|center_vertical" - android:layout_marginLeft="@dimen/widget_handle_margin" - android:src="@drawable/ic_widget_resize_handle" - android:tint="?attr/workspaceTextColor" /> - - <!-- Top --> - <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="top|center_horizontal" - android:layout_marginTop="@dimen/widget_handle_margin" - android:src="@drawable/ic_widget_resize_handle" - android:tint="?attr/workspaceTextColor" /> - - <!-- Right --> - <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="right|center_vertical" - android:layout_marginRight="@dimen/widget_handle_margin" - android:src="@drawable/ic_widget_resize_handle" - android:tint="?attr/workspaceTextColor" /> - - <!-- Bottom --> - <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="bottom|center_horizontal" - android:layout_marginBottom="@dimen/widget_handle_margin" - android:src="@drawable/ic_widget_resize_handle" - android:tint="?attr/workspaceTextColor" /> + android:padding="0dp"> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <!-- Left --> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left|center_vertical" + android:layout_marginLeft="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + + <!-- Top --> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="top|center_horizontal" + android:layout_marginTop="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + + <!-- Right --> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right|center_vertical" + android:layout_marginRight="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + + <!-- Bottom --> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center_horizontal" + android:layout_marginBottom="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + + </FrameLayout> </com.android.launcher3.AppWidgetResizeFrame>
\ No newline at end of file |