Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Wrapping Up1:56 with Ben Jakuben
You did it! Congratulations on completing another Android app. There is a lot you can do with this new knowledge!
Extra Project Ideas
- Add Location! I wrote a blog post to help you add location to this app. Check these links for some helpful resources:
Animate the list! RecyclerViews make it much easier to manage list item animations. Check out the ItemAnimator APIs and see if you can add some cool animations to list items as they come onto the screen. As always, share your work in the Forum! Bonus points for including an animated GIF of your animations. :)
Here is a helpful GitHub library with source code you can learn from (or use!): RecyclerViewItemAnimators
Reconfigure a RecyclerView! Can you change our RecyclerView to display items in a grid instead of a list? What about a horizontal list?
- What Employers Are Looking for in a Junior Android Dev - Some advice on getting a job as a junior Android developer
Yay. We did it.
We originally started on this app with a simple web request
to get some data from the forecast API.
Now, we have a fully functional forecast app with details about the upcoming week.
The focus of this course was on list views and
recycler views which are used quite often in Android apps.
There are some simple default ones we can use, which are really helpful.
But when it comes to creating our own,
remember that they follow the NBC design pattern.
We first identify the model, the day that we want to display, then we create
the view, a layout, just like an activity, except confined to a smaller rectangle.
Finally, we control it with an adapter, which populates the view with the data for
each item in the list.
In list views, this is done in the getView method of the adapter.
And in recycler views, it happens in the view holder itself.
Once again, there's a lot more we can do with this app which is why it's a great
one to learn from.
If you haven't already, why don't you try using the Android location APIs
to determine the user's current location automatically.
Maybe you could even allow users to switch between more than one location.
Check out our data persistence course if you need help with storing data.
There's still a lot of data in the forecast response that we
aren't using too.
You should try to display more of it in a useful manner.
May even try your hand at animating some of that information onto the screen.
Recycler views have a specialized class called item animator.
That makes it much easier to animate items on the list.
Lastly, recycler views are very flexible.
Check the documentation, and see if you can configure a recycler view
to display items in a grid instead of a list.
All right. So,
check the links in the teacher's notes below this video for
some helpful documentation.
I, the Treehouse staff, and other students love seeing what you build so
be sure to share it with us in the forum.
Also drop by and see if you can help anyone who is stuck with anything in this
course or an earlier course.
Because teaching something is the best way to fully understand and retain it.
See you later and happy coding.
You need to sign up for Treehouse in order to download course files.Sign up