|
@@ -118,6 +118,13 @@ mBottomBar.setTypeFace("MyFont.ttf"); |
|
|
|
|
|
Easy-peasy!
|
|
|
|
|
|
+**MainActivity.java:**
|
|
|
+
|
|
|
+```java
|
|
|
+// Instead of attach(), use attachShy:
|
|
|
+mBottomBar = BottomBar.attachShy((CoordinatorLayout) findViewById(R.id.myCoordinator), savedInstanceState);
|
|
|
+```
|
|
|
+
|
|
|
**activity_main.xml:**
|
|
|
|
|
|
```xml
|
|
@@ -138,13 +145,6 @@ Easy-peasy! |
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
|
```
|
|
|
|
|
|
-**MainActivity.java:**
|
|
|
-
|
|
|
-```java
|
|
|
-// Instead of attach(), use attachShy:
|
|
|
-mBottomBar = BottomBar.attachShy((CoordinatorLayout) findViewById(R.id.myCoordinator), savedInstanceState);
|
|
|
-```
|
|
|
-
|
|
|
#### Can it handle my Fragments and replace them automagically when a different tab is selected?
|
|
|
|
|
|
Yep yep yep! Just call ```setFragmentItems()``` instead of ```setItemsFromMenu()```:
|
|
|
0 comments on commit
bff5fae