Skip to content

Commit

Permalink
update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftyWang committed Nov 22, 2016
1 parent a17e4b2 commit 4331318
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
Top Material Design Top Toast Bar.

Support in the application or in the window.

Toast style to use:

with container view:
```java
public void onBottomToast(View view) {
BottomToast.make((ViewGroup) findViewById(R.id.parent), context, "HELLO WORLD!!!!", 3000).show();
}

public void onTopToast(View view) {
TopToast.make((ViewGroup) findViewById(R.id.parent), context, "HELLO WORLD!!!!", 3000).show();
}
```

without container view(attach as overlay)
```java
public void onBottomToast(View view) {
BottomToast.make(context, "HELLO WORLD!!!!", 3000).show();
}

public void onTopToast(View view) {
TopToast.make(context, "HELLO WORLD!!!!", 3000).show();
}
```

0 comments on commit 4331318

Please sign in to comment.