-
Notifications
You must be signed in to change notification settings - Fork 28
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
LiuRi
committed
Feb 21, 2017
1 parent
a0312fc
commit 6a0d9f3
Showing
3 changed files
with
117 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
56 changes: 56 additions & 0 deletions
56
...bble/src/main/java/net/lemonsoft/lemonbubble/interfaces/LemonBubbleLifeCycleDelegate.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,56 @@ | ||
package net.lemonsoft.lemonbubble.interfaces; | ||
|
||
import net.lemonsoft.lemonbubble.LemonBubbleInfo; | ||
import net.lemonsoft.lemonbubble.LemonBubbleView; | ||
|
||
/** | ||
* LemonBubble的生命周期支持 | ||
* Created by LiuRi on 2017/2/21. | ||
*/ | ||
|
||
public interface LemonBubbleLifeCycleDelegate { | ||
|
||
/** | ||
* LemonBubble将要被显示 | ||
*/ | ||
void willShow(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo); | ||
|
||
/** | ||
* LemonBubble已经被显示完毕 | ||
*/ | ||
void alreadyShow(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo); | ||
|
||
/** | ||
* LemonBubble即将被关闭 | ||
*/ | ||
void willHide(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo); | ||
|
||
/** | ||
* LemonBubble已经被关闭 | ||
*/ | ||
void alreadyHide(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo); | ||
|
||
abstract class Adapter implements LemonBubbleLifeCycleDelegate { | ||
@Override | ||
public void willShow(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo) { | ||
|
||
} | ||
|
||
@Override | ||
public void alreadyShow(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo) { | ||
|
||
} | ||
|
||
@Override | ||
public void willHide(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo) { | ||
|
||
} | ||
|
||
@Override | ||
public void alreadyHide(LemonBubbleView bubbleView, LemonBubbleInfo bubbleInfo) { | ||
|
||
} | ||
|
||
} | ||
|
||
} |