Anko provides several different artifacts that you can use to enhance your Android development. In this video, look at the use of the Anko Snackbar and Fragments extensions.
- [Instructor] Anko provides several different artifacts…that you can use to enhance your android development.…In this video, we'll look at the use…of the Snackbar, and fragments.…So first we need to make sure we have…the following dependencies in our build.gradle file.…The anko-design dependency here on line 35,…and the anko-support-v4-commons dependency on line 36.…Since these aren't core to Anko,…they're found in the different artifacts.…Now we're going to be updating the PlanetDetailActivity class…in order to take advantage of these new types…of Anko extensions.…
Previously, we created our own extension on the view class…to handle some limited interaction with the Snackbar.…And that's here on line 21,…where we created our own showSnackbar extension.…But with the Anko Design Library,…we no longer need to do that.…So we can replace this code right here,…with very simply, a call to Snackbar.…And let's make sure we include the Anko Design import.…That's just snackbar.…
But you'll notice that we have an error,…because this particular extension…
- What Kotlin has to offer
- Working with lambdas
- Common Android extension functions
- Kotlin Android Extensions overview
- Making use of the Anko library
- Working with coroutines
- Nullability and collections
Skill Level Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Developing AWS Lambda Functions with Kotlinwith Troy Miles1h 55m Intermediate
1. Kotlin Overview
2. Extension Functions and Properties
3. Incorporating Anko
4. Advanced Anko
5. Working with Collections
- 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.