A Snackbar comes up from the bottom of the screen. Look at how the Snackbar can be used in conjunction with a coordinator layout to move a floating action button out of the way.
- [Instructor] When a Snackbar appears in the screen,…we don't want it to collide with other material views,…such as a floating action button.…This is one of the primary reasons…why we placed our views in a coordinator layout.…Since the current location of the floating action…button precludes collision with the Snackbar,…we are going to move it back down to the lower right.…This will set up a situation where the coordinator layout…will have to move the floating action button…up and out of the way.…We're now going to change our main layout.…So we'll go into Resources, Layout,…and open up our main layout,…and we're going to change the placement…of our floating action button.…
We'll remove these two lines…where we're anchoring it up at the card view.…Instead, we're going to place it in the lower right.…First, I'm going to set the layout gravity…to be the lower, right hand side of the screen,…or bottom right.…And I'll give it a margin from the bottom.…We'll set that to the standard 16dp…set in the material design standards.…
- Breaking down a material design layout
- Adding AppCompat
- Adding icons and floating action buttons
- Animating the appearance
- Creating a RecyclerView
- Creating a ViewHolder
- Modifying the adapter
- Adding CardView
- Adding transition animations
- Adding a Snackbar
- Working with CoordinatorLayout
Skill Level Intermediate
1. What Is Android Material Design?
2. Implementing Material Design
3. Floating Action Button
View state change animations4m 17s
Next steps1m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.