Removing some unused resources
Change-Id: I6aa8a2d7eb4599ed2351c54fe0885839b5ba4521
This commit is contained in:
parent
8220d8afaa
commit
77ccb8d03c
|
@ -39,8 +39,7 @@
|
|||
android:id="@+id/workspace"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
launcher:defaultScreen="@integer/config_workspaceDefaultScreen" />
|
||||
android:layout_gravity="center" />
|
||||
|
||||
<!-- DO NOT CHANGE THE ID -->
|
||||
<include layout="@layout/hotseat"
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
android:id="@+id/workspace"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
|
||||
launcher:pageIndicator="@+id/page_indicator">
|
||||
</com.android.launcher3.Workspace>
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
android:id="@+id/workspace"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
|
||||
launcher:pageIndicator="@id/page_indicator">
|
||||
</com.android.launcher3.Workspace>
|
||||
|
||||
|
|
|
@ -17,9 +17,6 @@
|
|||
<com.android.launcher3.CellLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
||||
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hapticFeedbackEnabled="false"
|
||||
|
||||
launcher:maxGap="@dimen/workspace_max_gap" />
|
||||
android:hapticFeedbackEnabled="false" />
|
||||
|
|
|
@ -19,9 +19,6 @@
|
|||
|
||||
<resources>
|
||||
|
||||
<!-- Search Bar -->
|
||||
<style name="SearchButton"></style>
|
||||
|
||||
<style name="DropTargetButtonContainer">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright (C) 2011 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- Workspace -->
|
||||
<style name="SearchButton">
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
<item name="android:paddingTop">@dimen/toolbar_button_vertical_padding</item>
|
||||
<item name="android:paddingBottom">@dimen/toolbar_button_vertical_padding</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- the area at the edge of the screen that makes the workspace go left
|
||||
or right while you're dragging. -->
|
||||
<dimen name="scroll_zone">100dip</dimen>
|
||||
</resources>
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- Workspace -->
|
||||
<!-- the area at the edge of the screen that makes the workspace go left
|
||||
or right while you're dragging. -->
|
||||
<dimen name="scroll_zone">40dp</dimen>
|
||||
</resources>
|
|
@ -20,8 +20,6 @@
|
|||
<resources>
|
||||
|
||||
<!-- Workspace -->
|
||||
<style name="SearchButton"></style>
|
||||
|
||||
<style name="DropTargetButtonContainer">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
|
|
|
@ -36,42 +36,6 @@
|
|||
<attr name="windowSize" format="integer" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- Workspace specific attributes. These attributes are used to customize
|
||||
the workspace in XML files. -->
|
||||
<declare-styleable name="Workspace">
|
||||
<!-- The first screen the workspace should display. -->
|
||||
<attr name="defaultScreen" format="integer" />
|
||||
<!-- The number of horizontal cells in the CellLayout -->
|
||||
<attr name="cellCountX" format="integer" />
|
||||
<!-- The number of vertical cells in the CellLayout -->
|
||||
<attr name="cellCountY" format="integer" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- Hotseat specific attributes. These attributes are used to customize
|
||||
the hotseat in XML files. -->
|
||||
<declare-styleable name="Hotseat">
|
||||
<!-- The number of horizontal cells in the CellLayout -->
|
||||
<attr name="cellCountX" />
|
||||
<!-- The number of vertical cells in the CellLayout -->
|
||||
<attr name="cellCountY" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- CellLayout specific attributes. These attributes are used to customize
|
||||
a CellLayout view in XML files. -->
|
||||
<declare-styleable name="CellLayout">
|
||||
<!-- The width of a single cell -->
|
||||
<attr name="cellWidth" format="dimension" />
|
||||
<!-- The height of a single cell -->
|
||||
<attr name="cellHeight" format="dimension" />
|
||||
<!-- An override for the width and height gap to allow users to specify
|
||||
a specific size for the page using spacing instead of resolving the
|
||||
spacing from the width of the page -->
|
||||
<attr name="widthGap" format="dimension" />
|
||||
<attr name="heightGap" format="dimension" />
|
||||
<!-- The max gap size for each dimension -->
|
||||
<attr name="maxGap" format="dimension" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- PagedView specific attributes. These attributes are used to customize
|
||||
a PagedView view in XML files. -->
|
||||
<declare-styleable name="PagedView">
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
is used for internal (baked-in) padding -->
|
||||
<integer name="config_allAppsButtonPaddingPercent">17</integer>
|
||||
|
||||
<integer name="config_workspaceDefaultScreen">0</integer>
|
||||
|
||||
<!-- Workspace -->
|
||||
<!-- The duration (in ms) of the fade animation on the object outlines, used when
|
||||
we are dragging objects around on the home screen. -->
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
-->
|
||||
|
||||
<resources>
|
||||
<dimen name="app_icon_size">64dp</dimen>
|
||||
|
||||
<!-- Dynamic Grid -->
|
||||
<dimen name="dynamic_grid_edge_margin">6dp</dimen>
|
||||
<dimen name="dynamic_grid_search_bar_max_width">500dp</dimen>
|
||||
|
@ -42,9 +40,6 @@
|
|||
<dimen name="cling_migration_content_margin">16dp</dimen>
|
||||
<dimen name="cling_migration_content_width">280dp</dimen>
|
||||
|
||||
<!-- Workspace -->
|
||||
<dimen name="workspace_max_gap">16dp</dimen>
|
||||
|
||||
<!-- QSB -->
|
||||
<dimen name="toolbar_button_vertical_padding">4dip</dimen>
|
||||
<dimen name="toolbar_button_horizontal_padding">12dip</dimen>
|
||||
|
@ -67,7 +62,6 @@
|
|||
<dimen name="all_apps_grid_section_y_offset">8dp</dimen>
|
||||
<dimen name="all_apps_grid_section_text_size">24sp</dimen>
|
||||
<dimen name="all_apps_search_bar_height">48dp</dimen>
|
||||
<dimen name="all_apps_search_bar_prediction_bar_padding">8dp</dimen>
|
||||
<dimen name="all_apps_icon_top_bottom_padding">8dp</dimen>
|
||||
<dimen name="all_apps_icon_width_gap">24dp</dimen>
|
||||
<!-- The top padding should account for the existing all_apps_list_top_bottom_padding -->
|
||||
|
@ -80,10 +74,8 @@
|
|||
<dimen name="all_apps_background_canvas_height">475dp</dimen>
|
||||
|
||||
<!-- Widget tray -->
|
||||
<dimen name="widget_container_inset">8dp</dimen>
|
||||
<dimen name="widget_preview_label_vertical_padding">8dp</dimen>
|
||||
<dimen name="widget_preview_label_horizontal_padding">8dp</dimen>
|
||||
<dimen name="widget_preview_horizontal_padding">8dp</dimen>
|
||||
|
||||
<dimen name="widget_section_height">56dp</dimen>
|
||||
<dimen name="widget_section_icon_size">40dp</dimen>
|
||||
|
@ -104,10 +96,6 @@
|
|||
<dimen name="drop_target_drag_padding">14dp</dimen>
|
||||
<dimen name="drop_target_text_size">14sp</dimen>
|
||||
|
||||
<!-- the area at the edge of the screen that makes the workspace go left
|
||||
or right while you're dragging. -->
|
||||
<dimen name="scroll_zone">20dp</dimen>
|
||||
|
||||
<!-- When dragging an item, how much bigger (fixed dps) the dragged view
|
||||
should be. If 0, it will not be scaled at all. -->
|
||||
<dimen name="dragViewScale">12dp</dimen>
|
||||
|
|
|
@ -56,8 +56,6 @@
|
|||
<item name="customShadows">false</item>
|
||||
</style>
|
||||
|
||||
<style name="SearchButton"></style>
|
||||
|
||||
<style name="DropTargetButtonContainer">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
|
|
|
@ -116,9 +116,6 @@ public class Workspace extends PagedView
|
|||
@Thunk final WallpaperManager mWallpaperManager;
|
||||
@Thunk IBinder mWindowToken;
|
||||
|
||||
private int mOriginalDefaultPage;
|
||||
private int mDefaultPage;
|
||||
|
||||
private ShortcutAndWidgetContainer mDragSourceInternal;
|
||||
|
||||
@Thunk LongArrayMap<CellLayout> mWorkspaceScreens = new LongArrayMap<>();
|
||||
|
@ -309,14 +306,10 @@ public class Workspace extends PagedView
|
|||
mFadeInAdjacentScreens = false;
|
||||
mWallpaperManager = WallpaperManager.getInstance(context);
|
||||
|
||||
TypedArray a = context.obtainStyledAttributes(attrs,
|
||||
R.styleable.Workspace, defStyle, 0);
|
||||
mSpringLoadedShrinkFactor =
|
||||
res.getInteger(R.integer.config_workspaceSpringLoadShrinkPercentage) / 100.0f;
|
||||
mOverviewModeShrinkFactor =
|
||||
res.getInteger(R.integer.config_workspaceOverviewShrinkPercentage) / 100f;
|
||||
mOriginalDefaultPage = mDefaultPage = a.getInt(R.styleable.Workspace_defaultScreen, 1);
|
||||
a.recycle();
|
||||
|
||||
setOnHierarchyChangeListener(this);
|
||||
setHapticFeedbackEnabled(false);
|
||||
|
@ -423,7 +416,7 @@ public class Workspace extends PagedView
|
|||
* Initializes various states for this workspace.
|
||||
*/
|
||||
protected void initWorkspace() {
|
||||
mCurrentPage = mDefaultPage;
|
||||
mCurrentPage = getDefaultPage();
|
||||
LauncherAppState app = LauncherAppState.getInstance();
|
||||
DeviceProfile grid = mLauncher.getDeviceProfile();
|
||||
mIconCache = app.getIconCache();
|
||||
|
@ -445,6 +438,10 @@ public class Workspace extends PagedView
|
|||
setEdgeGlowColor(getResources().getColor(R.color.workspace_edge_effect_color));
|
||||
}
|
||||
|
||||
private int getDefaultPage() {
|
||||
return numCustomPages();
|
||||
}
|
||||
|
||||
private void setupLayoutTransition() {
|
||||
// We want to show layout transitions when pages are deleted, to close the gap.
|
||||
mLayoutTransition = new LayoutTransition();
|
||||
|
@ -577,9 +574,6 @@ public class Workspace extends PagedView
|
|||
|
||||
addFullScreenPage(customScreen);
|
||||
|
||||
// Ensure that the current page and default page are maintained.
|
||||
mDefaultPage = mOriginalDefaultPage + 1;
|
||||
|
||||
// Update the custom content hint
|
||||
if (mRestorePage != INVALID_RESTORE_PAGE) {
|
||||
mRestorePage = mRestorePage + 1;
|
||||
|
@ -605,9 +599,6 @@ public class Workspace extends PagedView
|
|||
|
||||
mCustomContentCallbacks = null;
|
||||
|
||||
// Ensure that the current page and default page are maintained.
|
||||
mDefaultPage = mOriginalDefaultPage - 1;
|
||||
|
||||
// Update the custom content hint
|
||||
if (mRestorePage != INVALID_RESTORE_PAGE) {
|
||||
mRestorePage = mRestorePage - 1;
|
||||
|
@ -4340,7 +4331,7 @@ public class Workspace extends PagedView
|
|||
}
|
||||
|
||||
void moveToDefaultScreen(boolean animate) {
|
||||
moveToScreen(mDefaultPage, animate);
|
||||
moveToScreen(getDefaultPage(), animate);
|
||||
}
|
||||
|
||||
void moveToCustomContentScreen(boolean animate) {
|
||||
|
|
Loading…
Reference in New Issue