... | @@ -49,6 +49,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
... | @@ -49,6 +49,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
// Whether the ham-button contains a sub text-view.
|
|
// Whether the ham-button contains a sub text-view.
|
|
.containsSubText(true)
|
|
.containsSubText(true)
|
|
```
|
|
```
|
|
|
|
#### Shadow
|
|
```
|
|
```
|
|
// Whether the boom-button should have a shadow effect.
|
|
// Whether the boom-button should have a shadow effect.
|
|
.shadowEffect(true)
|
|
.shadowEffect(true)
|
... | @@ -73,6 +74,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
... | @@ -73,6 +74,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
// Set the color of the shadow of boom-button.
|
|
// Set the color of the shadow of boom-button.
|
|
.shadowColor(Color.parseColor("#ee000000"))
|
|
.shadowColor(Color.parseColor("#ee000000"))
|
|
```
|
|
```
|
|
|
|
#### Image
|
|
```
|
|
```
|
|
// Set the image resource when boom-button is at normal-state.
|
|
// Set the image resource when boom-button is at normal-state.
|
|
.normalImageRes(R.drawable.jellyfish)
|
|
.normalImageRes(R.drawable.jellyfish)
|
... | @@ -111,6 +113,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
... | @@ -111,6 +113,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
// image-view content 10-pixel padding to itself.
|
|
// image-view content 10-pixel padding to itself.
|
|
.imagePadding(new Rect(0, 0, 0, 0))
|
|
.imagePadding(new Rect(0, 0, 0, 0))
|
|
```
|
|
```
|
|
|
|
#### Text
|
|
```
|
|
```
|
|
// Set the text resource when boom-button is at normal-state.
|
|
// Set the text resource when boom-button is at normal-state.
|
|
.normalTextRes(R.string.text_ham_button_text_normal)
|
|
.normalTextRes(R.string.text_ham_button_text_normal)
|
... | @@ -193,6 +196,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
... | @@ -193,6 +196,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
// Set the text size of the text-view.
|
|
// Set the text size of the text-view.
|
|
.textSize(10)
|
|
.textSize(10)
|
|
```
|
|
```
|
|
|
|
#### Sub-Text
|
|
```
|
|
```
|
|
// Set the sub-text resource when boom-button is at normal-state.
|
|
// Set the sub-text resource when boom-button is at normal-state.
|
|
.subNormalTextRes(R.string.text_ham_button_sub_text_normal)
|
|
.subNormalTextRes(R.string.text_ham_button_sub_text_normal)
|
... | @@ -275,6 +279,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
... | @@ -275,6 +279,7 @@ for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++) { |
|
// Set the text size of the sub-text-view.
|
|
// Set the text size of the sub-text-view.
|
|
.subTextSize(10)
|
|
.subTextSize(10)
|
|
```
|
|
```
|
|
|
|
#### Button
|
|
```
|
|
```
|
|
// Whether the boom-button should have a ripple effect.
|
|
// Whether the boom-button should have a ripple effect.
|
|
.rippleEffect(true)
|
|
.rippleEffect(true)
|
... | | ... | |