Skip to content

Commit

Permalink
Updated readme.md with the lib dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yavski committed Jan 4, 2016
1 parent b76e4f5 commit b1545ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Similarly tо [NavigationView] (http://developer.android.com/reference/android/s

### Gettting started

##### Add the dependency to gradle.build
```
dependencies {
compile 'io.github.yavski:fab-speed-dial:1.0.0'
}
```

##### Define a menu resource
```
<menu xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down Expand Up @@ -101,7 +108,7 @@ The following attribtues are supported:
### Caveats

If you have used FloatingActionButton, CoordinatorLayout, and both combined, you are most probably aware that:
* Internally, FAB has two main implementations: one for SDK >= 21, one for earlier versions; **the one for older versions uses extra padding in order to draw shadows; you don't need to account for the extra padding** as the library takes care of it however do check your layouts/dimensions to avoid mis-positioned views. views.
* Internally, FAB has two main implementations: one for SDK >= 21, one for earlier versions; **the one for older versions uses extra padding in order to draw shadows; you don't need to account for the extra padding** as the library takes care of it however do check your layouts/dimensions to avoid mis-positioned views.
* When used in a CoordinatorLayout, FAB is known to have its margin values ignored / misused under certain circumstances; as a workaround the library always adds left or right margin values (depending on gravity), taking into account the SDK version too.

### License
Expand Down

0 comments on commit b1545ef

Please sign in to comment.