Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lordcodes committed Feb 12, 2016
1 parent ae41a14 commit e19f121
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

The Android Design Support library introduced the `Snackbar`. SnackbarBuilder provides a builder pattern that not only makes Snackbars easier to create, but it also provides some extra customisations.

One of the main annoyances with the `Snackbar` is that it has a dark background, but takes the default text color from your theme, which is often dark as well. This makes the messages hard to read and requires you retrieve the TextView yourself and change the text color. `SnackbarBuilder` defaults the text color to white and then allows you to choose your own colour if you wish.
One of the main annoyances with the `Snackbar` is that it has a dark background, but takes the default text color from your theme, which is often dark as well. This makes the messages hard to read and requires you to retrieve the `TextView` yourself and change the text color. `SnackbarBuilder` defaults the text color to white and then allows you to choose your own colour if you wish.


## Download
Expand All @@ -30,18 +30,18 @@ The library is available on Bintray (JCenter) and Maven Central.

## Main Features

- Builder pattern to create Snackbars
- Customise message and action text color with global theme attributes and on a per-Snackbar basis
- Dismiss callbacks with separate methods for each type of dismiss event
- Theme attribute for default view ID in activity to attach Snackbars to, so you don't need to provide parent view each time you wish to show one
- Set default duration to use through a theme attribute
- A new `ToastBuilder` to create `Toast` messages, with a builder pattern and global theme attributes
- A builder pattern to create Snackbars.
- Customise message and action text color with global theme attributes and on a per-Snackbar basis.
- Dismiss callbacks with separate methods for each type of dismiss event.
- Theme attribute for the default view ID in an activity to attach Snackbars to, so you don't need to provide the parent view each time you wish to show one.
- Set the default duration to use through a theme attribute.
- A ToastBuilder to create Toast messages, with a builder pattern and global theme attributes.

## Usage

### Create

Build the Snackbar, making it very easy to build and customise the snackbar.
It is really easy to build and customise snackbars.

```java
Snackbar snackbar = new SnackbarBuilder(this)
Expand Down

0 comments on commit e19f121

Please sign in to comment.