-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a17e4b2
commit 4331318
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
``` |