summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/drawable-hdpi/ic_home_arrows_1_focus.pngbin1073 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_1_focus_right.pngbin3763 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_1_normal.pngbin759 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_1_normal_right.pngbin3450 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_1_press.pngbin1064 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_1_press_right.pngbin3756 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_2_focus.pngbin1189 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_2_focus_right.pngbin3855 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_2_normal.pngbin832 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_2_normal_right.pngbin3513 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_2_press.pngbin1172 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_2_press_right.pngbin3843 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_3_focus.pngbin1205 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_3_focus_right.pngbin3861 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_3_normal.pngbin838 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_3_normal_right.pngbin3519 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_3_press.pngbin1198 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_3_press_right.pngbin3857 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_4_focus.pngbin1205 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_4_focus_right.pngbin3858 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_4_normal.pngbin837 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_4_normal_right.pngbin3528 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_4_press.pngbin1199 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_home_arrows_4_press_right.pngbin3854 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_1_focus.pngbin1016 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_1_focus_right.pngbin3659 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_1_normal.pngbin543 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_1_normal_right.pngbin3178 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_1_press.pngbin1015 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_1_press_right.pngbin3655 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_2_focus.pngbin1240 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_2_focus_right.pngbin3901 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_2_normal.pngbin670 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_2_normal_right.pngbin3304 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_2_press.pngbin1235 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_2_press_right.pngbin3902 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_3_focus.pngbin1460 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_3_focus_right.pngbin4124 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_3_normal.pngbin790 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_3_normal_right.pngbin3422 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_3_press.pngbin1445 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_3_press_right.pngbin4106 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_4_focus.pngbin1668 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_4_focus_right.pngbin4328 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_4_normal.pngbin900 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_4_normal_right.pngbin3535 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_4_press.pngbin1666 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_home_arrows_4_press_right.pngbin4314 -> 0 bytes
-rw-r--r--res/drawable/home_arrows_left.xml23
-rw-r--r--res/drawable/home_arrows_left_1.xml22
-rw-r--r--res/drawable/home_arrows_left_2.xml22
-rw-r--r--res/drawable/home_arrows_left_3.xml22
-rw-r--r--res/drawable/home_arrows_left_4.xml22
-rw-r--r--res/drawable/home_arrows_right.xml23
-rw-r--r--res/drawable/home_arrows_right_1.xml22
-rw-r--r--res/drawable/home_arrows_right_2.xml22
-rw-r--r--res/drawable/home_arrows_right_3.xml22
-rw-r--r--res/drawable/home_arrows_right_4.xml22
-rw-r--r--res/layout-land/launcher.xml34
-rw-r--r--res/layout-port/launcher.xml30
-rw-r--r--res/values/attrs.xml4
-rw-r--r--src/com/android/launcher2/ClippedImageView.java50
-rw-r--r--src/com/android/launcher2/FocusHelper.java88
-rw-r--r--src/com/android/launcher2/Launcher.java66
-rw-r--r--src/com/android/launcher2/Workspace.java21
65 files changed, 4 insertions, 511 deletions
diff --git a/res/drawable-hdpi/ic_home_arrows_1_focus.png b/res/drawable-hdpi/ic_home_arrows_1_focus.png
deleted file mode 100644
index fd9586224..000000000
--- a/res/drawable-hdpi/ic_home_arrows_1_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_1_focus_right.png b/res/drawable-hdpi/ic_home_arrows_1_focus_right.png
deleted file mode 100644
index 2a7059fb2..000000000
--- a/res/drawable-hdpi/ic_home_arrows_1_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_1_normal.png b/res/drawable-hdpi/ic_home_arrows_1_normal.png
deleted file mode 100644
index c72a4bf28..000000000
--- a/res/drawable-hdpi/ic_home_arrows_1_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_1_normal_right.png b/res/drawable-hdpi/ic_home_arrows_1_normal_right.png
deleted file mode 100644
index 90819e64b..000000000
--- a/res/drawable-hdpi/ic_home_arrows_1_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_1_press.png b/res/drawable-hdpi/ic_home_arrows_1_press.png
deleted file mode 100644
index 70011d7a7..000000000
--- a/res/drawable-hdpi/ic_home_arrows_1_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_1_press_right.png b/res/drawable-hdpi/ic_home_arrows_1_press_right.png
deleted file mode 100644
index 45ea6f8bf..000000000
--- a/res/drawable-hdpi/ic_home_arrows_1_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_2_focus.png b/res/drawable-hdpi/ic_home_arrows_2_focus.png
deleted file mode 100644
index 1f1164aa1..000000000
--- a/res/drawable-hdpi/ic_home_arrows_2_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_2_focus_right.png b/res/drawable-hdpi/ic_home_arrows_2_focus_right.png
deleted file mode 100644
index 330ee39e9..000000000
--- a/res/drawable-hdpi/ic_home_arrows_2_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_2_normal.png b/res/drawable-hdpi/ic_home_arrows_2_normal.png
deleted file mode 100644
index dc017373f..000000000
--- a/res/drawable-hdpi/ic_home_arrows_2_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_2_normal_right.png b/res/drawable-hdpi/ic_home_arrows_2_normal_right.png
deleted file mode 100644
index dc843c659..000000000
--- a/res/drawable-hdpi/ic_home_arrows_2_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_2_press.png b/res/drawable-hdpi/ic_home_arrows_2_press.png
deleted file mode 100644
index 294b3316c..000000000
--- a/res/drawable-hdpi/ic_home_arrows_2_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_2_press_right.png b/res/drawable-hdpi/ic_home_arrows_2_press_right.png
deleted file mode 100644
index 4fc9d0f29..000000000
--- a/res/drawable-hdpi/ic_home_arrows_2_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_3_focus.png b/res/drawable-hdpi/ic_home_arrows_3_focus.png
deleted file mode 100644
index 7ada5ca3c..000000000
--- a/res/drawable-hdpi/ic_home_arrows_3_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_3_focus_right.png b/res/drawable-hdpi/ic_home_arrows_3_focus_right.png
deleted file mode 100644
index 98d76ef7a..000000000
--- a/res/drawable-hdpi/ic_home_arrows_3_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_3_normal.png b/res/drawable-hdpi/ic_home_arrows_3_normal.png
deleted file mode 100644
index 1ee2372ce..000000000
--- a/res/drawable-hdpi/ic_home_arrows_3_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_3_normal_right.png b/res/drawable-hdpi/ic_home_arrows_3_normal_right.png
deleted file mode 100644
index 90a93fada..000000000
--- a/res/drawable-hdpi/ic_home_arrows_3_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_3_press.png b/res/drawable-hdpi/ic_home_arrows_3_press.png
deleted file mode 100644
index 7c98a2930..000000000
--- a/res/drawable-hdpi/ic_home_arrows_3_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_3_press_right.png b/res/drawable-hdpi/ic_home_arrows_3_press_right.png
deleted file mode 100644
index 5cfd28c85..000000000
--- a/res/drawable-hdpi/ic_home_arrows_3_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_4_focus.png b/res/drawable-hdpi/ic_home_arrows_4_focus.png
deleted file mode 100644
index 84f3a7bff..000000000
--- a/res/drawable-hdpi/ic_home_arrows_4_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_4_focus_right.png b/res/drawable-hdpi/ic_home_arrows_4_focus_right.png
deleted file mode 100644
index 813f863b1..000000000
--- a/res/drawable-hdpi/ic_home_arrows_4_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_4_normal.png b/res/drawable-hdpi/ic_home_arrows_4_normal.png
deleted file mode 100644
index 477f725dd..000000000
--- a/res/drawable-hdpi/ic_home_arrows_4_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_4_normal_right.png b/res/drawable-hdpi/ic_home_arrows_4_normal_right.png
deleted file mode 100644
index f8a8612e9..000000000
--- a/res/drawable-hdpi/ic_home_arrows_4_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_4_press.png b/res/drawable-hdpi/ic_home_arrows_4_press.png
deleted file mode 100644
index 7b8f2076a..000000000
--- a/res/drawable-hdpi/ic_home_arrows_4_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_home_arrows_4_press_right.png b/res/drawable-hdpi/ic_home_arrows_4_press_right.png
deleted file mode 100644
index 4d9c2ca8e..000000000
--- a/res/drawable-hdpi/ic_home_arrows_4_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_1_focus.png b/res/drawable-mdpi/ic_home_arrows_1_focus.png
deleted file mode 100644
index c0c272030..000000000
--- a/res/drawable-mdpi/ic_home_arrows_1_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_1_focus_right.png b/res/drawable-mdpi/ic_home_arrows_1_focus_right.png
deleted file mode 100644
index 89eb55242..000000000
--- a/res/drawable-mdpi/ic_home_arrows_1_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_1_normal.png b/res/drawable-mdpi/ic_home_arrows_1_normal.png
deleted file mode 100644
index c3b6e1df6..000000000
--- a/res/drawable-mdpi/ic_home_arrows_1_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_1_normal_right.png b/res/drawable-mdpi/ic_home_arrows_1_normal_right.png
deleted file mode 100644
index 705cf0fcd..000000000
--- a/res/drawable-mdpi/ic_home_arrows_1_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_1_press.png b/res/drawable-mdpi/ic_home_arrows_1_press.png
deleted file mode 100644
index b5d6e3eb8..000000000
--- a/res/drawable-mdpi/ic_home_arrows_1_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_1_press_right.png b/res/drawable-mdpi/ic_home_arrows_1_press_right.png
deleted file mode 100644
index 694db41bb..000000000
--- a/res/drawable-mdpi/ic_home_arrows_1_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_2_focus.png b/res/drawable-mdpi/ic_home_arrows_2_focus.png
deleted file mode 100644
index fc645408a..000000000
--- a/res/drawable-mdpi/ic_home_arrows_2_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_2_focus_right.png b/res/drawable-mdpi/ic_home_arrows_2_focus_right.png
deleted file mode 100644
index 0e25d39d9..000000000
--- a/res/drawable-mdpi/ic_home_arrows_2_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_2_normal.png b/res/drawable-mdpi/ic_home_arrows_2_normal.png
deleted file mode 100644
index 712c57db6..000000000
--- a/res/drawable-mdpi/ic_home_arrows_2_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_2_normal_right.png b/res/drawable-mdpi/ic_home_arrows_2_normal_right.png
deleted file mode 100644
index 5a4a26cbd..000000000
--- a/res/drawable-mdpi/ic_home_arrows_2_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_2_press.png b/res/drawable-mdpi/ic_home_arrows_2_press.png
deleted file mode 100644
index db8422d8f..000000000
--- a/res/drawable-mdpi/ic_home_arrows_2_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_2_press_right.png b/res/drawable-mdpi/ic_home_arrows_2_press_right.png
deleted file mode 100644
index d55ea40c1..000000000
--- a/res/drawable-mdpi/ic_home_arrows_2_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_3_focus.png b/res/drawable-mdpi/ic_home_arrows_3_focus.png
deleted file mode 100644
index 51f317cf7..000000000
--- a/res/drawable-mdpi/ic_home_arrows_3_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_3_focus_right.png b/res/drawable-mdpi/ic_home_arrows_3_focus_right.png
deleted file mode 100644
index b61cf1c54..000000000
--- a/res/drawable-mdpi/ic_home_arrows_3_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_3_normal.png b/res/drawable-mdpi/ic_home_arrows_3_normal.png
deleted file mode 100644
index 24f0c827c..000000000
--- a/res/drawable-mdpi/ic_home_arrows_3_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_3_normal_right.png b/res/drawable-mdpi/ic_home_arrows_3_normal_right.png
deleted file mode 100644
index 8b417705f..000000000
--- a/res/drawable-mdpi/ic_home_arrows_3_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_3_press.png b/res/drawable-mdpi/ic_home_arrows_3_press.png
deleted file mode 100644
index 7ba3951d8..000000000
--- a/res/drawable-mdpi/ic_home_arrows_3_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_3_press_right.png b/res/drawable-mdpi/ic_home_arrows_3_press_right.png
deleted file mode 100644
index b5ceff40b..000000000
--- a/res/drawable-mdpi/ic_home_arrows_3_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_4_focus.png b/res/drawable-mdpi/ic_home_arrows_4_focus.png
deleted file mode 100644
index 0265c6b6c..000000000
--- a/res/drawable-mdpi/ic_home_arrows_4_focus.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_4_focus_right.png b/res/drawable-mdpi/ic_home_arrows_4_focus_right.png
deleted file mode 100644
index e65ed850f..000000000
--- a/res/drawable-mdpi/ic_home_arrows_4_focus_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_4_normal.png b/res/drawable-mdpi/ic_home_arrows_4_normal.png
deleted file mode 100644
index f3a19a7db..000000000
--- a/res/drawable-mdpi/ic_home_arrows_4_normal.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_4_normal_right.png b/res/drawable-mdpi/ic_home_arrows_4_normal_right.png
deleted file mode 100644
index 24ec6e794..000000000
--- a/res/drawable-mdpi/ic_home_arrows_4_normal_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_4_press.png b/res/drawable-mdpi/ic_home_arrows_4_press.png
deleted file mode 100644
index 9623df4f4..000000000
--- a/res/drawable-mdpi/ic_home_arrows_4_press.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_home_arrows_4_press_right.png b/res/drawable-mdpi/ic_home_arrows_4_press_right.png
deleted file mode 100644
index 8a577fa31..000000000
--- a/res/drawable-mdpi/ic_home_arrows_4_press_right.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable/home_arrows_left.xml b/res/drawable/home_arrows_left.xml
deleted file mode 100644
index 82df25898..000000000
--- a/res/drawable/home_arrows_left.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<level-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:maxLevel="0" android:drawable="@android:color/transparent" />
- <item android:maxLevel="1" android:drawable="@drawable/home_arrows_left_1" />
- <item android:maxLevel="2" android:drawable="@drawable/home_arrows_left_2" />
- <item android:maxLevel="3" android:drawable="@drawable/home_arrows_left_3" />
- <item android:maxLevel="4" android:drawable="@drawable/home_arrows_left_4" />
-</level-list>
diff --git a/res/drawable/home_arrows_left_1.xml b/res/drawable/home_arrows_left_1.xml
deleted file mode 100644
index f61f39ea5..000000000
--- a/res/drawable/home_arrows_left_1.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_1_press" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_1_focus" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_1_normal" />
- <item android:drawable="@drawable/ic_home_arrows_1_normal" />
-</selector>
diff --git a/res/drawable/home_arrows_left_2.xml b/res/drawable/home_arrows_left_2.xml
deleted file mode 100644
index 888a2589e..000000000
--- a/res/drawable/home_arrows_left_2.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_2_press" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_2_focus" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_2_normal" />
- <item android:drawable="@drawable/ic_home_arrows_2_normal" />
-</selector>
diff --git a/res/drawable/home_arrows_left_3.xml b/res/drawable/home_arrows_left_3.xml
deleted file mode 100644
index 4dbdf15dd..000000000
--- a/res/drawable/home_arrows_left_3.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_3_press" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_3_focus" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_3_normal" />
- <item android:drawable="@drawable/ic_home_arrows_3_normal" />
-</selector>
diff --git a/res/drawable/home_arrows_left_4.xml b/res/drawable/home_arrows_left_4.xml
deleted file mode 100644
index 31b381d02..000000000
--- a/res/drawable/home_arrows_left_4.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_4_press" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_4_focus" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_4_normal" />
- <item android:drawable="@drawable/ic_home_arrows_4_normal" />
-</selector>
diff --git a/res/drawable/home_arrows_right.xml b/res/drawable/home_arrows_right.xml
deleted file mode 100644
index 8ab0dec9d..000000000
--- a/res/drawable/home_arrows_right.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<level-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:maxLevel="0" android:drawable="@drawable/home_arrows_right_4" />
- <item android:maxLevel="1" android:drawable="@drawable/home_arrows_right_3" />
- <item android:maxLevel="2" android:drawable="@drawable/home_arrows_right_2" />
- <item android:maxLevel="3" android:drawable="@drawable/home_arrows_right_1" />
- <item android:maxLevel="4" android:drawable="@android:color/transparent" />
-</level-list>
diff --git a/res/drawable/home_arrows_right_1.xml b/res/drawable/home_arrows_right_1.xml
deleted file mode 100644
index f49b760f3..000000000
--- a/res/drawable/home_arrows_right_1.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_1_press_right" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_1_focus_right" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_1_normal_right" />
- <item android:drawable="@drawable/ic_home_arrows_1_normal_right" />
-</selector>
diff --git a/res/drawable/home_arrows_right_2.xml b/res/drawable/home_arrows_right_2.xml
deleted file mode 100644
index 17318a3a6..000000000
--- a/res/drawable/home_arrows_right_2.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_2_press_right" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_2_focus_right" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_2_normal_right" />
- <item android:drawable="@drawable/ic_home_arrows_2_normal_right" />
-</selector>
diff --git a/res/drawable/home_arrows_right_3.xml b/res/drawable/home_arrows_right_3.xml
deleted file mode 100644
index 375f8e39a..000000000
--- a/res/drawable/home_arrows_right_3.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_3_press_right" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_3_focus_right" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_3_normal_right" />
- <item android:drawable="@drawable/ic_home_arrows_3_normal_right" />
-</selector>
diff --git a/res/drawable/home_arrows_right_4.xml b/res/drawable/home_arrows_right_4.xml
deleted file mode 100644
index 06627c6d5..000000000
--- a/res/drawable/home_arrows_right_4.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/ic_home_arrows_4_press_right" />
- <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/ic_home_arrows_4_focus_right" />
- <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/ic_home_arrows_4_normal_right" />
- <item android:drawable="@drawable/ic_home_arrows_4_normal_right" />
-</selector>
diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml
index 3e557af0d..3c5e0df36 100644
--- a/res/layout-land/launcher.xml
+++ b/res/layout-land/launcher.xml
@@ -61,40 +61,6 @@
android:layout_height="match_parent"
android:visibility="invisible" />
- <com.android.launcher2.ClippedImageView
- android:id="@+id/previous_screen"
- android:layout_width="93dip"
- android:layout_height="@dimen/button_bar_height"
- android:layout_gravity="bottom|left"
- android:layout_marginLeft="6dip"
-
- android:scaleType="center"
- android:src="@drawable/home_arrows_left"
-
- android:onClick="previousScreen"
-
- launcher:ignoreZone="56dip"
-
- android:focusable="true"
- android:clickable="true" />
-
- <com.android.launcher2.ClippedImageView
- android:id="@+id/next_screen"
- android:layout_width="93dip"
- android:layout_height="@dimen/button_bar_height"
- android:layout_gravity="bottom|right"
- android:layout_marginRight="6dip"
-
- android:scaleType="center"
- android:src="@drawable/home_arrows_right"
-
- android:onClick="nextScreen"
-
- launcher:ignoreZone="-56dip"
-
- android:focusable="true"
- android:clickable="true" />
-
<RelativeLayout
android:id="@+id/all_apps_button_cluster"
android:layout_height="fill_parent"
diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml
index 323350653..d2b9275ef 100644
--- a/res/layout-port/launcher.xml
+++ b/res/layout-port/launcher.xml
@@ -60,36 +60,6 @@
android:layout_height="match_parent"
android:visibility="invisible" />
- <ImageView
- android:id="@+id/previous_screen"
- android:layout_width="93dip"
- android:layout_height="@dimen/button_bar_height"
- android:layout_gravity="bottom|left"
- android:layout_marginLeft="6dip"
-
- android:scaleType="center"
- android:src="@drawable/home_arrows_left"
-
- android:onClick="previousScreen"
-
- android:focusable="true"
- android:clickable="true" />
-
- <ImageView
- android:id="@+id/next_screen"
- android:layout_width="93dip"
- android:layout_height="@dimen/button_bar_height"
- android:layout_gravity="bottom|right"
- android:layout_marginRight="6dip"
-
- android:scaleType="center"
- android:src="@drawable/home_arrows_right"
-
- android:onClick="nextScreen"
-
- android:focusable="true"
- android:clickable="true" />
-
<RelativeLayout
android:id="@+id/all_apps_button_cluster"
android:layout_width="fill_parent"
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 284f57472..ec35ca56d 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -152,8 +152,4 @@
<attr name="title" format="reference" />
<attr name="uri" format="string" />
</declare-styleable>
-
- <declare-styleable name="ClippedImageView">
- <attr name="ignoreZone" format="dimension" />
- </declare-styleable>
</resources>
diff --git a/src/com/android/launcher2/ClippedImageView.java b/src/com/android/launcher2/ClippedImageView.java
deleted file mode 100644
index 2c4380d88..000000000
--- a/src/com/android/launcher2/ClippedImageView.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * 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.
- */
-
-package com.android.launcher2;
-
-import android.content.Context;
-import android.content.res.TypedArray;
-import android.util.AttributeSet;
-import android.view.MotionEvent;
-import android.widget.ImageView;
-import com.android.launcher.R;
-
-public class ClippedImageView extends ImageView {
- private final int mZone;
-
- public ClippedImageView(Context context, AttributeSet attrs) {
- this(context, attrs, 0);
- }
-
- public ClippedImageView(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
-
- TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ClippedImageView, defStyle, 0);
-
- mZone = a.getDimensionPixelSize(R.styleable.ClippedImageView_ignoreZone, 0);
-
- a.recycle();
- }
-
- @Override
- public boolean onTouchEvent(MotionEvent event) {
- final int zone = mZone;
- return !(zone != 0 && (zone > 0 && event.getX() >= zone) ||
- (zone < 0 && event.getX() < getWidth() + zone)) && super.onTouchEvent(event);
-
- }
-}
diff --git a/src/com/android/launcher2/FocusHelper.java b/src/com/android/launcher2/FocusHelper.java
index 25d941b65..d45c9ac15 100644
--- a/src/com/android/launcher2/FocusHelper.java
+++ b/src/com/android/launcher2/FocusHelper.java
@@ -41,16 +41,6 @@ class ButtonBarKeyEventListener implements View.OnKeyListener {
}
/**
- * A keyboard listener we set on the indicator buttons.
- */
-class IndicatorKeyEventListener implements View.OnKeyListener {
- @Override
- public boolean onKey(View v, int keyCode, KeyEvent event) {
- return FocusHelper.handleIndicatorButtonKeyEvent(v, keyCode, event);
- }
-}
-
-/**
* A keyboard listener we set on all the dock buttons.
*/
class DockKeyEventListener implements View.OnKeyListener {
@@ -545,73 +535,6 @@ public class FocusHelper {
}
/**
- * Handles key events in the prev/next indicators.
- */
- static boolean handleIndicatorButtonKeyEvent(View v, int keyCode, KeyEvent e) {
- final ViewGroup launcher = (ViewGroup) v.getParent();
- final Workspace workspace = (Workspace) launcher.findViewById(R.id.workspace);
- final ViewGroup hotseat = (ViewGroup) launcher.findViewById(R.id.all_apps_button_cluster);
- final View previousIndicator = launcher.findViewById(R.id.previous_screen);
- final View nextIndicator = launcher.findViewById(R.id.next_screen);
- final int pageIndex = workspace.getCurrentPage();
- final int pageCount = workspace.getChildCount();
-
- final int action = e.getAction();
- final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP);
- boolean wasHandled = false;
- switch (keyCode) {
- case KeyEvent.KEYCODE_DPAD_LEFT:
- if (handleKeyEvent) {
- if (v == previousIndicator) {
- if (pageIndex > 0) {
- // Snap to previous page and clear focus
- workspace.snapToPage(pageIndex - 1);
- }
- } else if (v == nextIndicator) {
- // Select the last button in the hot seat
- hotseat.getChildAt(hotseat.getChildCount() - 1).requestFocus();
- }
- }
- wasHandled = true;
- break;
- case KeyEvent.KEYCODE_DPAD_RIGHT:
- if (handleKeyEvent) {
- if (v == previousIndicator) {
- // Select the first button in the hot seat
- hotseat.getChildAt(0).requestFocus();
- } else if (v == nextIndicator) {
- if (pageIndex < (pageCount - 1)) {
- // Snap to next page and clear focus
- workspace.snapToPage(pageIndex + 1);
- }
- }
- }
- wasHandled = true;
- break;
- case KeyEvent.KEYCODE_DPAD_UP:
- if (handleKeyEvent) {
- // Select the first bubble text view in the current page of the workspace
- final CellLayout layout = (CellLayout) workspace.getChildAt(pageIndex);
- final CellLayoutChildren children = layout.getChildrenLayout();
- final View newIcon = getBubbleTextViewInDirection(layout, children, -1, 1);
- if (newIcon != null) {
- newIcon.requestFocus();
- } else {
- workspace.requestFocus();
- }
- }
- wasHandled = true;
- break;
- case KeyEvent.KEYCODE_DPAD_DOWN:
- // Do nothing
- wasHandled = true;
- break;
- default: break;
- }
- return wasHandled;
- }
-
- /**
* Handles key events in the workspace dock (bottom of the screen).
*/
static boolean handleDockButtonKeyEvent(View v, int keyCode, KeyEvent e, int orientation) {
@@ -622,8 +545,6 @@ public class FocusHelper {
final int buttonCount = parent.getChildCount();
final int pageIndex = workspace.getCurrentPage();
final int pageCount = workspace.getChildCount();
- final View previousIndicator = launcher.findViewById(R.id.previous_screen);
- final View nextIndicator = launcher.findViewById(R.id.next_screen);
// NOTE: currently we don't special case for the phone UI in different
// orientations, even though the dock is on the side in landscape mode. This
@@ -635,23 +556,22 @@ public class FocusHelper {
switch (keyCode) {
case KeyEvent.KEYCODE_DPAD_LEFT:
if (handleKeyEvent) {
-
- // Select the previous button, otherwise select the previous page indicator
+ // Select the previous button, otherwise snap to the previous page
if (buttonIndex > 0) {
parent.getChildAt(buttonIndex - 1).requestFocus();
} else {
- previousIndicator.requestFocus();
+ workspace.snapToPage(pageIndex - 1);
}
}
wasHandled = true;
break;
case KeyEvent.KEYCODE_DPAD_RIGHT:
if (handleKeyEvent) {
- // Select the next button, otherwise select the next page indicator
+ // Select the next button, otherwise snap to the next page
if (buttonIndex < (buttonCount - 1)) {
parent.getChildAt(buttonIndex + 1).requestFocus();
} else {
- nextIndicator.requestFocus();
+ workspace.snapToPage(pageIndex + 1);
}
}
wasHandled = true;
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 2dfce622f..b1752a72d 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -226,10 +226,6 @@ public final class Launcher extends Activity
private static HashMap<Long, FolderInfo> sFolders = new HashMap<Long, FolderInfo>();
- // The "signpost" images along the bottom of the screen (only in some layouts)
- private ImageView mPreviousView;
- private ImageView mNextView;
-
// Hotseats (quick-launch icons next to AllApps)
private String[] mHotseatConfig = null;
private Intent[] mHotseats = null;
@@ -675,13 +671,6 @@ public final class Launcher extends Activity
@Override
protected void onPause() {
super.onPause();
- // Some launcher layouts don't have a previous and next view
- if (mPreviousView != null) {
- dismissPreview(mPreviousView);
- }
- if (mNextView != null) {
- dismissPreview(mNextView);
- }
mPaused = true;
mDragController.cancelDrag();
}
@@ -878,21 +867,6 @@ public final class Launcher extends Activity
ImageView hotseatRight = (ImageView) findViewById(R.id.hotseat_right);
hotseatRight.setContentDescription(mHotseatLabels[1]);
hotseatRight.setImageDrawable(mHotseatIcons[1]);
-
- View.OnKeyListener listener = new IndicatorKeyEventListener();
- mPreviousView = (ImageView) mDragLayer.findViewById(R.id.previous_screen);
- mPreviousView.setOnKeyListener(listener);
- mNextView = (ImageView) mDragLayer.findViewById(R.id.next_screen);
- mNextView.setOnKeyListener(listener);
-
- Drawable previous = mPreviousView.getDrawable();
- Drawable next = mNextView.getDrawable();
- mWorkspace.setIndicators(previous, next);
-
- mPreviousView.setHapticFeedbackEnabled(false);
- mPreviousView.setOnLongClickListener(this);
- mNextView.setHapticFeedbackEnabled(false);
- mNextView.setOnLongClickListener(this);
}
if (!LauncherApplication.isScreenLarge()) {
@@ -1383,15 +1357,6 @@ public final class Launcher extends Activity
unbindDesktopItems();
getContentResolver().unregisterContentObserver(mWidgetObserver);
-
- // Some launcher layouts don't have a previous and next view
- if (mPreviousView != null) {
- dismissPreview(mPreviousView);
- }
- if (mNextView != null) {
- dismissPreview(mNextView);
- }
-
unregisterReceiver(mCloseSystemDialogsReceiver);
((ViewGroup) mWorkspace.getParent()).removeAllViews();
@@ -1518,12 +1483,6 @@ public final class Launcher extends Activity
return mWorkspaceLoading || mWaitingForResult;
}
- // Is the workspace preview (brought up by long-pressing on a signpost icon) visible?
- private boolean isPreviewVisible() {
- return (mPreviousView != null && mPreviousView.getTag() != null) ||
- (mNextView != null && mNextView.getTag() != null);
- }
-
private void addItems() {
showWorkspace(true);
showAddDialog(-1, -1);
@@ -1734,9 +1693,6 @@ public final class Launcher extends Activity
} else {
closeFolder();
}
- } else if (isPreviewVisible()) {
- dismissPreview(mPreviousView);
- dismissPreview(mNextView);
} else {
mWorkspace.exitWidgetResizeMode();
@@ -2001,20 +1957,6 @@ public final class Launcher extends Activity
}
switch (v.getId()) {
- case R.id.previous_screen:
- if (mState != State.APPS_CUSTOMIZE) {
- mWorkspace.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS,
- HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
- showPreviews(v);
- }
- return true;
- case R.id.next_screen:
- if (mState != State.APPS_CUSTOMIZE) {
- mWorkspace.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS,
- HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
- showPreviews(v);
- }
- return true;
case R.id.all_apps_button:
if (mState != State.APPS_CUSTOMIZE) {
mWorkspace.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS,
@@ -2602,12 +2544,8 @@ public final class Launcher extends Activity
if (animated) {
int duration = mSearchDeleteBar.getTransitionInDuration();
mButtonCluster.animate().alpha(1f).setDuration(duration);
- mPreviousView.animate().alpha(1f).setDuration(duration);
- mNextView.animate().alpha(1f).setDuration(duration);
} else {
mButtonCluster.setAlpha(1f);
- mPreviousView.setAlpha(1f);
- mNextView.setAlpha(1f);
}
}
}
@@ -2620,12 +2558,8 @@ public final class Launcher extends Activity
if (animated) {
int duration = mSearchDeleteBar.getTransitionOutDuration();
mButtonCluster.animate().alpha(0f).setDuration(duration);
- mPreviousView.animate().alpha(0f).setDuration(duration);
- mNextView.animate().alpha(0f).setDuration(duration);
} else {
mButtonCluster.setAlpha(0f);
- mPreviousView.setAlpha(0f);
- mNextView.setAlpha(0f);
}
}
}
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 005bd2730..c0439ddc9 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -158,9 +158,6 @@ public class Workspace extends SmoothPagedView
private static final int DEFAULT_CELL_COUNT_X = 4;
private static final int DEFAULT_CELL_COUNT_Y = 4;
- private Drawable mPreviousIndicator;
- private Drawable mNextIndicator;
-
// State variable that indicates whether the pages are small (ie when you're
// in all apps or customize mode)
private boolean mIsSmall = false;
@@ -681,17 +678,6 @@ public class Workspace extends SmoothPagedView
@Override
protected void notifyPageSwitchListener() {
super.notifyPageSwitchListener();
-
- if (mPreviousIndicator != null) {
- // if we know the next page, we show the indication for it right away; it looks
- // weird if the indicators are lagging
- int page = mNextPage;
- if (page == INVALID_PAGE) {
- page = mCurrentPage;
- }
- mPreviousIndicator.setLevel(page);
- mNextIndicator.setLevel(page);
- }
Launcher.setScreen(mCurrentPage);
};
@@ -3523,13 +3509,6 @@ public class Workspace extends SmoothPagedView
getChildAt(mDefaultPage).requestFocus();
}
- void setIndicators(Drawable previous, Drawable next) {
- mPreviousIndicator = previous;
- mNextIndicator = next;
- previous.setLevel(mCurrentPage);
- next.setLevel(mCurrentPage);
- }
-
@Override
public void syncPages() {
}