blob: 6348b123b5be35a077dd64f1178fe1fd7fd8b7b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package com.android.launcher3.pageindicators;
import android.view.View;
import java.util.ArrayList;
public interface PageIndicator {
View getView();
void setProgress(float progress);
void removeAllMarkers(boolean allowAnimations);
void addMarkers(ArrayList<PageMarkerResources> markers, boolean allowAnimations);
void setActiveMarker(int activePage);
void addMarker(int pageIndex, PageMarkerResources pageIndicatorMarker, boolean allowAnimations);
void removeMarker(int pageIndex, boolean allowAnimations);
void updateMarker(int pageIndex, PageMarkerResources pageIndicatorMarker);
/**
* Contains two resource ids for each page indicator marker (e.g. dots):
* one for when the page is active and one for when the page is inactive.
*/
class PageMarkerResources {
int activeId;
int inactiveId;
public PageMarkerResources(int aId, int iaId) {
activeId = aId;
inactiveId = iaId;
}
}
}
|