summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/pageindicators/PageIndicator.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-06-15 12:51:30 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-06-15 12:51:30 -0700
commit7d2fc8120e549eaa9542b0985aab67d172cbd682 (patch)
tree92335d428aa9379039c061bae93188c0b24135a8 /src/com/android/launcher3/pageindicators/PageIndicator.java
parentb25b2c41c2fa277e16d708ad827e283efcb86452 (diff)
downloadandroid_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.tar.gz
android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.tar.bz2
android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.zip
Add caret shaped all app pull up handle to page indicator.
b/28917826 > PageIndicator is also added in landscape > Touch delegate allows the active touch area to be 36dp Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
Diffstat (limited to 'src/com/android/launcher3/pageindicators/PageIndicator.java')
-rw-r--r--src/com/android/launcher3/pageindicators/PageIndicator.java27
1 files changed, 24 insertions, 3 deletions
diff --git a/src/com/android/launcher3/pageindicators/PageIndicator.java b/src/com/android/launcher3/pageindicators/PageIndicator.java
index 7c5949598..2209bb8ad 100644
--- a/src/com/android/launcher3/pageindicators/PageIndicator.java
+++ b/src/com/android/launcher3/pageindicators/PageIndicator.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright (C) 2016 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.launcher3.pageindicators;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
+import com.android.launcher3.dynamicui.ExtractedColors;
+
/**
* Base class for a page indicator.
*/
@@ -15,9 +32,9 @@ public abstract class PageIndicator extends View {
super(context, attrs, defStyleAttr);
}
- public abstract void setScroll(int currentScroll, int totalScroll);
+ public void setScroll(int currentScroll, int totalScroll) {}
- public abstract void setActiveMarker(int activePage);
+ public void setActiveMarker(int activePage) {}
public void addMarker() {
mNumPages++;
@@ -33,5 +50,9 @@ public abstract class PageIndicator extends View {
onPageCountChanged();
}
- protected abstract void onPageCountChanged();
+ protected void onPageCountChanged() { }
+
+ public void setShouldAutoHide(boolean shouldAutoHide) {}
+
+ public void updateColor(ExtractedColors extractedColors) {}
}