Skip to content
Browse files

Update README.md

  • Loading branch information...
1 parent 9bee8ee commit 41615395b99b27eeb0bbd90188172ac1563db576 @roughike committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
4 README.md
@@ -122,7 +122,8 @@ Easy-peasy!
```java
// Instead of attach(), use attachShy:
-mBottomBar = BottomBar.attachShy((CoordinatorLayout) findViewById(R.id.myCoordinator), savedInstanceState);
+mBottomBar = BottomBar.attachShy((CoordinatorLayout) findViewById(R.id.myCoordinator),
+ findViewById(R.id.myScrollingContent), savedInstanceState);
```
**activity_main.xml:**
@@ -135,6 +136,7 @@ mBottomBar = BottomBar.attachShy((CoordinatorLayout) findViewById(R.id.myCoordin
android:fitsSystemWindows="true">
<android.support.v4.widget.NestedScrollView
+ android:id="@+id/myScrollingContent"
android:layout_width="match_parent"
android:layout_height="match_parent">

0 comments on commit 4161539

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