-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to intercept expanding animation
- Loading branch information
1 parent
ba0adf3
commit 5b43226
Showing
4 changed files
with
38 additions
and
5 deletions.
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
15 changes: 15 additions & 0 deletions
15
holdingbutton/src/main/java/com/dewarder/holdinglibrary/HoldingButtonTouchListener.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,15 @@ | ||
package com.dewarder.holdinglibrary; | ||
|
||
/** | ||
* Interface is used to intercept touch events. | ||
* Can be used for cases when permissions or something else are needed and expanding animation isn't needed | ||
*/ | ||
public interface HoldingButtonTouchListener { | ||
|
||
/** | ||
* Indicates that holding view is touched. | ||
* Method is called before any method of `HoldingButtonLayoutListener`. | ||
* @return false - if expanding animation must be canceled, true - if animation must be proceeded | ||
*/ | ||
boolean onHoldingViewTouched(); | ||
} |