Skip to content

Commit

Permalink
readme added
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketbhoite committed May 19, 2018
1 parent a2db1a3 commit 3556bb4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ allprojects {

```
dependencies {
compile 'com.github.aniketbhoite:MutativeFab:1.0.7'
compile 'com.github.aniketbhoite:MutativeFab:1.0.8'
}
```

Expand Down Expand Up @@ -58,15 +58,18 @@ Add floating text button to your layout file like this:
mFab.setFabTextVisibility(View.VISIBLE);//or View.GONE only
//to get TextView visibility
mFab.getFabTextVisibility();//returns Int
mFab.setFabTypeface(typeface);
mFab.setFabTypeface(typeface);//to change text font

//in kotlin use can directly access fabText visibility by
mFab.fabTextVisibility = View.VISIBLE
```
If your project do not have kotlin support follow these steps

**Step 1:** Add [Jitpack](https://jitpack.io/v/aniketbhoite/MutativeFab) kotlin gradle plugin in your root build.gradle file (not your module build.gradle file):
```
buildscript {
//this
ext.kotlin_version = '1.2.10'
ext.kotlin_version = '1.2.41'
repositories {
google()
jcenter()
Expand Down

0 comments on commit 3556bb4

Please sign in to comment.