Skip to content

Commit

Permalink
[Docs] Update Snackbar doc regarding CoordinatorLayout
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 453180113
  • Loading branch information
dsn5ft authored and pekingme committed Jun 6, 2022
1 parent 25482b1 commit ef2c2fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/components/Snackbar.md
Expand Up @@ -44,10 +44,8 @@ Available duration presets are:
* `LENGTH_SHORT` (Show the snackbar for a short period of time)

**Note:** Snackbars work best if they are displayed inside of a
[CoordinatorLayout](https://developer.android.com/reference/androidx/coordinatorlayout/widget/CoordinatorLayout).
`CoordinatorLayout` allows the snackbar to enable behavior like
swipe-to-dismiss, as well as automatically moving widgets like
[FloatingActionButton](FloatingActionButton.md).
[CoordinatorLayout](https://developer.android.com/reference/androidx/coordinatorlayout/widget/CoordinatorLayout),
which allows the snackbar to enable behavior like swipe-to-dismiss.

### Making snackbars accessible

Expand Down

0 comments on commit ef2c2fa

Please sign in to comment.