Skip to content

An app that tracks sleep quality, now with a RecyclerView

Notifications You must be signed in to change notification settings

bagelbomb/SleepTrackerRV

Repository files navigation

SleepTrackerRV

An Android application that uses a RecyclerView to track and display the user's sleep quality.

Submitted by: Tanner Iverson

Time spent: 6 hours

User Stories

The following required functionality is complete:

  • Change LinearLayout to GridLayout.
  • Implement Click Listener SleepNight icons.
  • Add navigation to detail screen when SleepNight icon is clicked.
  • Add list header.
  • Modify header to span and display properly on a GridLayout.

The following additional features are implemented:

  • List anything else that you can get done to improve the app functionality!

Previous implemented functionality:

  • Refactor onBindViewHolder

  • Refactor onCreateViewHolder

  • Refresh sleep night data using DiffUtil

  • Add data binding to the adapter.

  • Add binding adapters.

  • Replace ScrollView with RecyclerView.

  • Create RecyclerView adapter and ViewHolder for data binding.

  • Display sleep quality list by using recycled ViewHolders.

  • Display sleep quality list using icons instead of text.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Sleep Tracker RecyclerView demo

Notes

Possible additional features: delete just one sleep quality entry by swiping off screen, include more details such as the user's sleep statistics

License

Copyright 2019 Tanner Iverson

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

An app that tracks sleep quality, now with a RecyclerView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages