Skip to content

A simple todo app that has add, delete and edit functions.

Notifications You must be signed in to change notification settings

vallividhya/codepath-todo

Repository files navigation

"Get It Done" is an android app that allows building a todo list and basic todo items management functionality including adding new items, editing and deleting an existing item.

Submitted by: Valli Vidhya Venkatesan

Time spent: 26 hours spent in total

User Stories

The following required functionality is completed:

  • User can successfully add and remove items from the todo list
  • User can tap a todo item in the list and bring up an edit screen for the todo item and then have any changes to the text reflected in the todo list.
  • User can persist todo items and retrieve them properly on app restart

The following optional features are implemented:

  • Persist the todo items into SQLite instead of a text file
  • Improve style of the todo items in the list using a custom adapter
  • Add support for completion due dates for todo items (and display within listview item)
  • Use a DialogFragment instead of new Activity for editing items
  • Add support for selecting the priority of each todo item (and display in listview item)
  • Tweak the style improving the UI / UX, play with colors, images or backgrounds

The following additional features are implemented:

  • Tweaked UI to follow material design
  • Notifications to remind the user at 7 AM every morning about the tasks of the day.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Project Analysis

As part of your pre-work submission, please reflect on the app and answer the following questions below:

Question 1: "What are your reactions to the Android app development platform so far? Compare and contrast Android's approach to layouts and user interfaces in past platforms you've used."

Answer: Over the years, the setting up of the environment and running the app on an emulator have become faster and easier. This is my first experience in using Android Studio for Android development and it looks like a fully integrated development environment.

Question 2: "Take a moment to reflect on the ArrayAdapter used in your pre-work. How would you describe an adapter in this context and what is its function in Android? Why do you think the adapter is important? Explain the purpose of the convertView in the getView method of the ArrayAdapter."

Answer: An arrayadapter bridges the user interface components and the data source. The adapter is responsible for providing a view for each item in the data set. It listens to changes in the datasets and reflects them in the user interface.
The adapter plays an important role in the performace and scalability of the listviews, by reusing row views. The getView() method gets any reusable views, if possible. The convertView parameter could be null or could contain a reusuable view. If it is null, the adapter inflates a new view from the XML file. If not null, the convertView contains the reference to the reusable view and eliminates the need to create a new view. Inflating a new view would create a new Java object, which is an expensive operation. The convertView, thus, efficiently reuses an old resource. By overriding this getView() method in the custom array adapter, a custom row view can be inflated in a listview.

License

Copyright [2017] [Valli Vidhya Venkatesan]

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

A simple todo app that has add, delete and edit functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages