This project is a proof of concept that uses Navigation Architecture Component, this app is a simple Notes app without domain knowledge needed to understand the purpose of this app.
- List notes
- View Single note
- Edit a note
- Delete a note
- Deep link to a note
- Connecting
Nav Drawer
with your navigation graph - Configuring type-safe arguments between navigation components (between Fragments in this project)
MVVM (Model-View-ViewModel) is used to make the architecture cleaner, more readable and maintanable. Notes are stored and managed in memory within the domain layer (this sample is about Navigation and not full-blown Clean Architecture
This project is built following some article and samples provided by Google and with help of other Jetpack libraries such as ViewModel and LiveData
Google recommends a single Activity with multiple Fragments when using the new Navigation component. Navigating via Fragments simplifies the lifecycle greatly as you don’t have to deal with complexity of interaction between Activity and Fragment lifecycles. Activities as destinations make sense when your navigation flow involves interaction with other apps.
MIT License
Copyright (c) 2019 Edward Bryan Abergas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.