Look at how to change the layout XML to add and use a CardView.
- [Instructor] We're now going to add a CardView…to an existing layout, we're going to do that…in our main layout, let's open that up.…In this case, our CardView's going to appear…over the existing RecyclerView.…To do this, we're going to use a linear layout…to create a stacaking effect of one over the other.…So I'm going to add the linear layout…around the existing RecyclerView.…And I'm going to grab the layout width and height from the…RecyclerView and we'll set the orientation to vertical.…
And we'll move the end tag, after the RecyclerView.…And we'll play with some sopacing here to fix it up.…The firwt thing we want in our linear layout…is the CardView, so let's add that.…And that's going to be android.support.v7.widget.CardView.…I want to reference the CardView in code,…so I'm actually going to give it an id.…And we'll call this personal_time_card.…
And we're going to copy the layout height and width…from our RecyclerView again.…Now, I only want the CardView to be as tall as…the content, so I'm going to change…
- 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
F# and Xamarin Development Basicswith Rachel Reese56m 43s 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.