-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76f92af
commit a2116a0
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
src/com/android/launcher3/mximpl/ScrollControllerImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
package com.android.launcher3.mximpl; | ||
|
||
import com.android.launcher3.allapps.SearchUiManager; | ||
import com.android.launcher3.touch.SwipeDetector; | ||
import com.android.launcher3.util.TouchController; | ||
|
||
/** | ||
* 二级界面和菜单的控制接口 | ||
* | ||
* Created by yuchuan on 2018/4/14. | ||
*/ | ||
|
||
public interface ScrollControllerImpl extends TouchController, SwipeDetector.Listener, | ||
SearchUiManager.OnScrollRangeChangeListener{ | ||
public interface ScrollControllerImpl { | ||
|
||
void updateCaret(float containerProgress, float velocity, boolean dragging); | ||
|
||
void animateCaretToProgress(float progress); | ||
|
||
float getThreshold(); | ||
|
||
boolean isTransitioning(); | ||
void onDragStart(); | ||
|
||
} | ||
} |