forked from chrisbanes/Android-PullToRefresh
-
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.
Move all of the LoadingLayout customisation methods to a separate class.
- Loading branch information
Chris Banes
committed
Dec 12, 2012
1 parent
d10ab41
commit 4988cbd
Showing
4 changed files
with
284 additions
and
248 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
library/src/com/handmark/pulltorefresh/library/ILoadingLayout.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,48 @@ | ||
package com.handmark.pulltorefresh.library; | ||
|
||
import android.graphics.drawable.Drawable; | ||
|
||
public interface ILoadingLayout { | ||
|
||
/** | ||
* Set Text to show when the Widget is refreshing | ||
* <code>setRefreshingLabel(releaseLabel, Mode.BOTH)</code> | ||
* | ||
* @param refreshingLabel - CharSequence to display | ||
*/ | ||
public void setRefreshingLabel(CharSequence refreshingLabel); | ||
|
||
/** | ||
* Set Text to show when the Widget is being pulled, and will refresh when | ||
* released. This is the same as calling | ||
* <code>setReleaseLabel(releaseLabel, Mode.BOTH)</code> | ||
* | ||
* @param releaseLabel - CharSequence to display | ||
*/ | ||
public void setReleaseLabel(CharSequence releaseLabel); | ||
|
||
/** | ||
* Set Text to show when the Widget is being Pulled | ||
* <code>setPullLabel(releaseLabel, Mode.BOTH)</code> | ||
* | ||
* @param pullLabel - CharSequence to display | ||
*/ | ||
public void setPullLabel(CharSequence pullLabel); | ||
|
||
/** | ||
* Set the Last Updated Text. This displayed under the main label when | ||
* Pulling | ||
* | ||
* @param label - Label to set | ||
*/ | ||
public void setLastUpdatedLabel(CharSequence label); | ||
|
||
/** | ||
* Set the drawable used in the loading layout. This is the same as calling | ||
* <code>setLoadingDrawable(drawable, Mode.BOTH)</code> | ||
* | ||
* @param drawable - Drawable to display | ||
*/ | ||
public void setLoadingDrawable(Drawable drawable); | ||
|
||
} |
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
Oops, something went wrong.