Skip to content
Browse files

Update README.md

  • Loading branch information...
1 parent 5424bad commit bff5fae373ef7158283d161c3334f8d3743f739f @roughike committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.md
View
14 README.md
@@ -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

Please sign in to comment.
Something went wrong with that request. Please try again.