-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from FuHeJian/master
1.毫秒设置成1000,实际上获取出来的时间是下个月的1号0点,改为999,防止出现其他月份。
- Loading branch information
Showing
7 changed files
with
549 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
35 changes: 35 additions & 0 deletions
35
...r/src/main/java/com/github/gzuliyujiang/calendarpicker/listener/OnPageChangeCallback.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.github.gzuliyujiang.calendarpicker.listener; | ||
|
||
import androidx.annotation.Px; | ||
|
||
public abstract class OnPageChangeCallback { | ||
/** | ||
* This method will be invoked when the current page is scrolled, either as part | ||
* of a programmatically initiated smooth scroll or a user initiated touch scroll. | ||
* | ||
* @param position Position index of the first page currently being displayed. | ||
* Page position+1 will be visible if positionOffset is nonzero. | ||
* @param positionOffset Value from [0, 1) indicating the offset from the page at position. | ||
* @param positionOffsetPixels Value in pixels indicating the offset from position. | ||
*/ | ||
public void onPageScrolled(int position, float positionOffset, | ||
@Px int positionOffsetPixels) { | ||
} | ||
|
||
/** | ||
* This method will be invoked when a new page becomes selected. Animation is not | ||
* necessarily complete. | ||
* | ||
* @param position Position index of the new selected page. | ||
*/ | ||
public void onPageSelected(int position) { | ||
} | ||
|
||
/** | ||
* Called when the scroll state changes. Useful for discovering when the user begins | ||
* dragging, when a fake drag is started, when the pager is automatically settling to the | ||
* current page, or when it is fully stopped/idle. {@code state} can be one of {@link | ||
*/ | ||
public void onPageScrollStateChanged(int state) { | ||
} | ||
} |
Oops, something went wrong.