Jul 31, 2024
Create New Project:
NotesSQLite
Theme Customization:
colors.xml
to add orange color:
<color name="Orange">#FF8C00</color>
themes.xml
accordingly.Enable View Binding:
build.gradle (Module)
:
android {
viewBinding {
enabled = true
}
}
Design Layouts:
recyclerView
for displaying notes.activity_main.xml
with a Floating Action Button to add notes.Design Add Note Activity Layout (activity_add_note.xml
):
Coding Logic for Adding Notes:
Node
data class with fields: ID, title, content.Testing Saving Functionality:
activity_main.xml
to display stored notes.onResume()
for real-time updates.Create Update Activity Layout (activity_update_note.xml
):
Implement Update Logic:
Add Delete Functionality:
Testing Delete Functionality: