public class Broccoli
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
DEFAULT_PLACEHOLDER_COLOR |
| 构造器和说明 |
|---|
Broccoli() |
| 限定符和类型 | 方法和说明 |
|---|---|
Broccoli |
addPlaceholder(java.util.List<PlaceholderParameter> placeholderParameters)
Add a list of
PlaceholderParameter to show placeholders for view. |
Broccoli |
addPlaceholder(PlaceholderParameter parameter)
Add a
PlaceholderParameter to show placeholder for view. |
Broccoli |
addPlaceholders(android.app.Activity activity,
int... viewIds)
Add a array of
PlaceholderParameter to show placeholders for view. |
Broccoli |
addPlaceholders(PlaceholderParameter... placeholderParameters)
Add a array of
PlaceholderParameter to show placeholders for view. |
Broccoli |
addPlaceholders(android.view.View... views)
Add a array of
PlaceholderParameter to show placeholders for view. |
Broccoli |
addPlaceholders(android.view.ViewGroup parent,
int... viewIds)
Add a array of
PlaceholderParameter to show placeholders for view. |
void |
clearAllPlaceholders()
Clear all the placeholders for the view you have added.
|
Broccoli |
clearPlaceholder(android.view.View view)
Will clear the placeholder of view.
|
void |
removeAllPlaceholders()
Clear & remove all the placeholders for the view you have added.
|
Broccoli |
removePlaceholder(android.view.View view)
Remove the placeholder of view.
|
void |
show()
Start to show all placeholders for the view you have set.
|
public Broccoli addPlaceholders(android.app.Activity activity, int... viewIds)
PlaceholderParameter to show placeholders for view.activity - The activity to which the view is attachedviewIds - The view id array.public Broccoli addPlaceholders(android.view.ViewGroup parent, int... viewIds)
PlaceholderParameter to show placeholders for view.parent - The views' parent.viewIds - The view id array.public Broccoli addPlaceholders(android.view.View... views)
PlaceholderParameter to show placeholders for view.views - The views' that you want to display their placeholder by default.public Broccoli addPlaceholder(PlaceholderParameter parameter)
PlaceholderParameter to show placeholder for view.parameter - The parameter of the placeholder.public Broccoli addPlaceholder(java.util.List<PlaceholderParameter> placeholderParameters)
PlaceholderParameter to show placeholders for view.placeholderParameters - The placeholderParameter list.public Broccoli addPlaceholders(PlaceholderParameter... placeholderParameters)
PlaceholderParameter to show placeholders for view.placeholderParameters - The placeholderParameter array.public Broccoli removePlaceholder(android.view.View view)
Broccoli.
Will restore the state of the view itself, such as view's background, TextView's textColor, ImageView's imageDrawable, etc.view - The placeholder of the view which needs to be removed.public Broccoli clearPlaceholder(android.view.View view)
removePlaceholder(View),
clear placeholder just clear the view's placeholder, but will not remove the record of the view from Broccoli.
Will restore the state of the view itself, such as view's background, TextView's textColor, ImageView's imageDrawable, etc.view - The placeholder of the view which needs to be cleared.public void removeAllPlaceholders()
BroccoliGradientDrawable, will cancel the gradient animation.public void clearAllPlaceholders()
BroccoliGradientDrawable, will cancel the gradient animation.public void show()