... | ... | @@ -48,6 +48,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
|
// Whether the text-view should rotate.
|
|
|
.rotateText(false)
|
|
|
```
|
|
|
#### Shadow
|
|
|
```
|
|
|
// Whether the boom-button should have a shadow effect.
|
|
|
.shadowEffect(true)
|
... | ... | @@ -72,6 +73,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
|
// Set the color of the shadow of boom-button.
|
|
|
.shadowColor(Color.parseColor("#ee000000"))
|
|
|
```
|
|
|
#### Image
|
|
|
```
|
|
|
// Set the image resource when boom-button is at normal-state.
|
|
|
.normalImageRes(R.drawable.jellyfish)
|
... | ... | @@ -110,6 +112,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
|
// image-view content 10-pixel padding to itself.
|
|
|
.imagePadding(new Rect(0, 0, 0, 0))
|
|
|
```
|
|
|
#### Text
|
|
|
```
|
|
|
// Set the text resource when boom-button is at normal-state.
|
|
|
.normalTextRes(R.string.text_outside_circle_button_text_normal)
|
... | ... | @@ -198,6 +201,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
|
// Set the text size of the text-view.
|
|
|
.textSize(10)
|
|
|
```
|
|
|
#### Button
|
|
|
```
|
|
|
// Whether the boom-button should have a ripple effect.
|
|
|
.rippleEffect(true)
|
... | ... | |