Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Krupen Ghetiya authored Jul 20, 2017
1 parent 94eaac3 commit d8cebee
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ allprojects {

``` groovy
dependencies {
compile 'com.allattentionhere:fabulousfilter:0.0.2'
compile 'com.allattentionhere:fabulousfilter:0.0.3'
}
```

Expand Down Expand Up @@ -65,6 +65,7 @@ public class MySampleFabFragment extends AAH_FabulousFragment {
setAnimationDuration(600); //optional; default 500ms
setPeekHeight(300); // optional; default 400dp
setCallbacks((Callbacks) getActivity()); //optional; to get back result
setAnimationListener((AnimationListener) getActivity()); //optional; to get animation callbacks
setViewgroupStatic(ll_buttons); // optional; layout to stick at bottom on slide
setViewPager(vp_types); //optional; if you use viewpager that has scrollview
setViewMain(rl_content); //necessary; main bottomsheet view
Expand Down Expand Up @@ -173,6 +174,43 @@ public class MainSampleActivity extends AppCompatActivity implements AAH_Fabulou
```

* ### Animation Listener (Optional)
This parameter is used to get animation callbacks.
```
setAnimationListener((AnimationListener) getActivity());
```
To use it, implement the AnimationListener in the calling component(Activity/Fragment etc), example:
```
public class MainSampleActivity extends AppCompatActivity implements AAH_FabulousFragment.Callbacks {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_sample);
}
@Override
public void onOpenAnimationStart() {
//do something on open animation start
}
@Override
public void onOpenAnimationEnd() {
//do something on open animation end
}
@Override
public void onCloseAnimationStart() {
//do something on close animation start
}
@Override
public void onCloseAnimationEnd() {
//do something on close animation start
}
}
```

* ### Static View (Optional)
This parameter is used to make view in Bottom Sheet static when user slides it. It can be any ViewGroup(LinearLayout/FrameLayout etc):
```
Expand Down

0 comments on commit d8cebee

Please sign in to comment.