forked from r0adkll/Slidr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrating a listener in the config to get callbacks
- Loading branch information
Showing
10 changed files
with
79 additions
and
6 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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
19 changes: 19 additions & 0 deletions
19
library/src/main/java/com/r0adkll/slidr/model/SlidrListener.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,19 @@ | ||
package com.r0adkll.slidr.model; | ||
|
||
/** | ||
* This listener interface is for receiving events from the sliding panel such as state changes | ||
* and slide progress | ||
* | ||
* Project: Slidr | ||
* Package: com.r0adkll.slidr.model | ||
* Created by drew.heavner on 2/24/15. | ||
*/ | ||
public interface SlidrListener { | ||
|
||
public void onSlideChange(float percent); | ||
|
||
public void onSlideOpened(); | ||
|
||
public void onSlideClosed(); | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
library/src/main/java/com/r0adkll/slidr/model/SlidrListenerAdapter.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,23 @@ | ||
package com.r0adkll.slidr.model; | ||
|
||
/** | ||
* Project: Slidr | ||
* Package: com.r0adkll.slidr.model | ||
* Created by drew.heavner on 2/24/15. | ||
*/ | ||
public class SlidrListenerAdapter implements SlidrListener{ | ||
@Override | ||
public void onSlideChange(float percent) { | ||
|
||
} | ||
|
||
@Override | ||
public void onSlideOpened() { | ||
|
||
} | ||
|
||
@Override | ||
public void onSlideClosed() { | ||
|
||
} | ||
} |