public static class SpeedDialActionItem.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(int id,
android.graphics.drawable.Drawable drawable)
Creates a builder for a speed dial action item that uses a
Drawable as icon. |
Builder(int id,
int fabImageResource)
Creates a builder for a speed dial action item that uses a
DrawableRes as icon. |
Builder(SpeedDialActionItem speedDialActionItem)
Creates a builder for a speed dial action item that uses a
SpeedDialActionItem instance to
initialize the default values. |
| Modifier and Type | Method and Description |
|---|---|
SpeedDialActionItem |
create() |
SpeedDialActionItem.Builder |
setFabBackgroundColor(int fabBackgroundColor) |
SpeedDialActionItem.Builder |
setFabImageTintColor(int fabImageTintColor) |
SpeedDialActionItem.Builder |
setFabSize(int fabSize) |
SpeedDialActionItem.Builder |
setLabel(int labelRes) |
SpeedDialActionItem.Builder |
setLabel(java.lang.String label) |
SpeedDialActionItem.Builder |
setLabelBackgroundColor(int labelBackgroundColor) |
SpeedDialActionItem.Builder |
setLabelClickable(boolean labelClickable) |
SpeedDialActionItem.Builder |
setLabelColor(int labelColor) |
SpeedDialActionItem.Builder |
setTheme(int mTheme) |
public Builder(@IdRes
int id,
@DrawableRes
int fabImageResource)
DrawableRes as icon.id - the identifier for this action item. The identifier must be unique to the instance
of SpeedDialView. The identifier should be a positive number.fabImageResource - resId the resource identifier of the drawablepublic Builder(@IdRes
int id,
@Nullable
android.graphics.drawable.Drawable drawable)
Drawable as icon.
Drawable are not parcelables so is not possible to restore them when the view is
recreated for example after an orientation change. If possible always use the #Builder(int, int)
id - the identifier for this action item. The identifier must be unique to the instance
of SpeedDialView. The identifier should be a positive number.drawable - the Drawable to set, or null to clear the contentpublic Builder(SpeedDialActionItem speedDialActionItem)
SpeedDialActionItem instance to
initialize the default values.speedDialActionItem - it will be used for the default values of the builder.public SpeedDialActionItem.Builder setLabel(@Nullable java.lang.String label)
public SpeedDialActionItem.Builder setLabel(@StringRes int labelRes)
public SpeedDialActionItem.Builder setFabImageTintColor(int fabImageTintColor)
public SpeedDialActionItem.Builder setFabBackgroundColor(int fabBackgroundColor)
public SpeedDialActionItem.Builder setLabelColor(int labelColor)
public SpeedDialActionItem.Builder setLabelBackgroundColor(int labelBackgroundColor)
public SpeedDialActionItem.Builder setLabelClickable(boolean labelClickable)
public SpeedDialActionItem.Builder setTheme(int mTheme)
public SpeedDialActionItem create()
public SpeedDialActionItem.Builder setFabSize(int fabSize)