public static class FloatActionButton.Builder
extends java.lang.Object
构造器和说明 |
---|
FloatActionButton.Builder(android.app.Activity context) |
限定符和类型 | 方法和说明 |
---|---|
FloatActionButton |
create() |
FloatActionButton.Builder |
withButtonColor(int color)
Sets the FAB color
|
FloatActionButton.Builder |
withButtonSize(int size)
Sets the FAB size in dp
|
FloatActionButton.Builder |
withDrawable(android.graphics.drawable.Drawable drawable)
Sets the FAB drawable
|
FloatActionButton.Builder |
withGravity(int gravity)
Sets the gravity for the FAB
|
FloatActionButton.Builder |
withMargins(int left,
int top,
int right,
int bottom)
Sets the margins for the FAB in dp
|
public FloatActionButton.Builder withGravity(int gravity)
public FloatActionButton.Builder withMargins(int left, int top, int right, int bottom)
public FloatActionButton.Builder withDrawable(android.graphics.drawable.Drawable drawable)
public FloatActionButton.Builder withButtonColor(int color)
public FloatActionButton.Builder withButtonSize(int size)
public FloatActionButton create()