This repository has been archived by the owner on Aug 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fung <fython@163.com>
- Loading branch information
Showing
4 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
library/src/main/java/moe/feng/common/view/breadcrumbs/BreadcrumbsCallback.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,8 +1,25 @@ | ||
package moe.feng.common.view.breadcrumbs; | ||
|
||
/** | ||
* Interface definition for a callback to be invoked when BreadcrumbsView's item was clicked or changed. | ||
*/ | ||
public interface BreadcrumbsCallback { | ||
|
||
/** | ||
* Called when BreadcrumbsView's item has been clicked | ||
* | ||
* @param view Parent view | ||
* @param position The position of clicked item | ||
*/ | ||
void onItemClick(BreadcrumbsView view, int position); | ||
|
||
/** | ||
* Called when BreadcrumbsView's item has been changed | ||
* | ||
* @param view Parent view | ||
* @param parentPosition The position of the parent item of changed item | ||
* @param nextItem Next item title | ||
*/ | ||
void onItemChange(BreadcrumbsView view, int parentPosition, String nextItem); | ||
|
||
} |
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