Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gturedi committed Feb 21, 2017
1 parent dfe2542 commit 0110b43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Then wrap a view which target area(view) to show states with StatefulLayout
android:id="@+id/target"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:stfAnimationEnabled="true"
app:stfInAnimation="@android:anim/slide_in_left"
app:stfOutAnimation="@android:anim/slide_out_right"
>
...
</LinearLayout>
Expand All @@ -53,6 +56,10 @@ stateful.showLoading();
## API
State methods have overloads for customization. If you pass clickListener parameter as null, relevant state button
will be hided. More customization please look [CustomStateOptions.java](library/src/main/java/com/gturedi/views/CustomStateOptions.java)

- setAnimationEnabled(boolean animationEnabled)
- setInAnimation(@AnimRes int inAnimation)
- setOutAnimation(@AnimRes int outAnimation)
- showContent()
- showLoading(String message)
- showEmpty(String message)
Expand Down

0 comments on commit 0110b43

Please sign in to comment.