|
What if I want BMB to boom in just its parent-view?
|
|
What if I want BMB to boom in just its parent-view?
|
|
|
|
|
|
###Cache Optimization
|
|
### Cache Optimization
|
|
In BMB, cache optimization is apply for avoiding re-create boom-buttons every time it booms. With cache optimization, boom-buttons will not be removed so that they are not necessary to re-create, which can optimize the resource. The default value for cache optimization is true, you can turn it off by:
|
|
In BMB, cache optimization is apply for avoiding re-create boom-buttons every time it booms. With cache optimization, boom-buttons will not be removed so that they are not necessary to re-create, which can optimize the resource. The default value for cache optimization is true, you can turn it off by:
|
|
```
|
|
```
|
|
bmb.setCacheOptimization(false);
|
|
bmb.setCacheOptimization(false);
|
... | @@ -11,7 +11,7 @@ app:bmb_cacheOptimization="false" |
... | @@ -11,7 +11,7 @@ app:bmb_cacheOptimization="false" |
|
```
|
|
```
|
|
Notice that when bmb is used [in fragment](https://github.com/Nightonke/BoomMenu/wiki/Use-BMB-in-Fragment) or [in list](https://github.com/Nightonke/BoomMenu/wiki/Use-BMB-in-List)(list-view/recycler-view), cache optimization is turned off automatically.
|
|
Notice that when bmb is used [in fragment](https://github.com/Nightonke/BoomMenu/wiki/Use-BMB-in-Fragment) or [in list](https://github.com/Nightonke/BoomMenu/wiki/Use-BMB-in-List)(list-view/recycler-view), cache optimization is turned off automatically.
|
|
|
|
|
|
###Boom Area
|
|
### Boom Area
|
|
Sometimes, maybe you want bmb to boom in its parent-view. Use the following code to do that:
|
|
Sometimes, maybe you want bmb to boom in its parent-view. Use the following code to do that:
|
|
```
|
|
```
|
|
bmb1.setBoomInWholeScreen(false);
|
|
bmb1.setBoomInWholeScreen(false);
|
... | | ... | |