Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/husseinfo/todo
Nano To-do Android application
https://github.com/husseinfo/todo
android todo todo-app todolist
Last synced: 6 days ago
JSON representation
Nano To-do Android application
- Host: GitHub
- URL: https://github.com/husseinfo/todo
- Owner: Husseinfo
- Created: 2022-08-04T19:12:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T19:46:23.000Z (11 months ago)
- Last Synced: 2024-06-06T02:52:44.456Z (7 months ago)
- Topics: android, todo, todo-app, todolist
- Language: Java
- Homepage:
- Size: 203 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todo
[![Download](http://img.shields.io/badge/APK-Download-green)](https://github.com/Husseinfo/todo/releases/latest)
~~16KB~~ 12 KB To-do list native Android application
![alt todo](https://github.com/Husseinfo/todo/blob/main/todo.png?raw=true)
# 1 - Gradle
Wait for gradle build to complete, gradle is a building system (tool) responsible for building all
of the project in order to generate an apk (compile java, add xml, convert to dalvik code... =>
produce apk)Normally it will start automatically, to make sure everything is okay:
from menu => Build => Make Project (first item)# 2 - Source code
## 2a - Java
Java files:
- Activities:
- MainActivity
- Main activity of the app => to be launched when app starts
- It shows a list of to do items
- AddItemActivity
- Activity to add new item to the list
- Started from MainActivity when Add button is clicked- Other files:
- Helper
- Contains helpers methods for
- Reading the items list from storage
- Adding new item to the list and save to storage## 2b - XML
Screens in android (the view of the Activity) is represented by an XML file.
In `res/layout/` there is a layout file for each activity
- activity_main contains:
- List view for the items
- Button to launch `AddItemActivity`
- activity_add_item contains:
- EditText view to get the text from the user
- Button to save the new item