Removing some bitmap drawables.
Loading the edge drawables only when legacy DND is enabled Change-Id: I1c66d03146fb7fa7d61a4abf8c2e5a4289a117b9
Before Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 333 B |
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/quantum_panel_shape"
|
||||
android:insetBottom="@dimen/quantum_panel_outer_padding"
|
||||
android:insetLeft="@dimen/quantum_panel_outer_padding"
|
||||
android:insetRight="@dimen/quantum_panel_outer_padding"
|
||||
android:insetTop="@dimen/quantum_panel_outer_padding" />
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/quantum_panel_shape_dark"
|
||||
android:insetBottom="@dimen/quantum_panel_outer_padding"
|
||||
android:insetLeft="@dimen/quantum_panel_outer_padding"
|
||||
android:insetRight="@dimen/quantum_panel_outer_padding"
|
||||
android:insetTop="@dimen/quantum_panel_outer_padding" />
|
Before Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 664 B |
Before Width: | Height: | Size: 816 B |
Before Width: | Height: | Size: 995 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
|
@ -14,5 +14,9 @@
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<nine-patch xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/quantum_panel_bitmap" />
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/quantum_panel_shape"
|
||||
android:insetBottom="@dimen/quantum_panel_outer_padding"
|
||||
android:insetLeft="@dimen/quantum_panel_outer_padding"
|
||||
android:insetRight="@dimen/quantum_panel_outer_padding"
|
||||
android:insetTop="@dimen/quantum_panel_outer_padding" />
|
||||
|
|
|
@ -14,5 +14,9 @@
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<nine-patch xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/quantum_panel_dark_bitmap" />
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/quantum_panel_shape_dark"
|
||||
android:insetBottom="@dimen/quantum_panel_outer_padding"
|
||||
android:insetLeft="@dimen/quantum_panel_outer_padding"
|
||||
android:insetRight="@dimen/quantum_panel_outer_padding"
|
||||
android:insetTop="@dimen/quantum_panel_outer_padding" />
|
||||
|
|
|
@ -145,10 +145,12 @@ public class DragLayer extends InsettableFrameLayout {
|
|||
setChildrenDrawingOrderEnabled(true);
|
||||
|
||||
final Resources res = getResources();
|
||||
mLeftHoverDrawable = res.getDrawable(R.drawable.page_hover_left);
|
||||
mRightHoverDrawable = res.getDrawable(R.drawable.page_hover_right);
|
||||
mLeftHoverDrawableActive = res.getDrawable(R.drawable.page_hover_left_active);
|
||||
mRightHoverDrawableActive = res.getDrawable(R.drawable.page_hover_right_active);
|
||||
if (FeatureFlags.LAUNCHER3_LEGACY_WORKSPACE_DND) {
|
||||
mLeftHoverDrawable = res.getDrawable(R.drawable.page_hover_left);
|
||||
mRightHoverDrawable = res.getDrawable(R.drawable.page_hover_right);
|
||||
mLeftHoverDrawableActive = res.getDrawable(R.drawable.page_hover_left_active);
|
||||
mRightHoverDrawableActive = res.getDrawable(R.drawable.page_hover_right_active);
|
||||
}
|
||||
mIsRtl = Utilities.isRtl(res);
|
||||
mFocusIndicatorHelper = new ViewGroupFocusHelper(this);
|
||||
}
|
||||
|
|