My article covering this repo: Navigation Architecture Component for the Rest of Us
This project contains a comprehensive sample of using the Navigation Architecture Component by way of a simple Notes app--no 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
- Animate a transition between screens
- Connecting
Nav Drawer
with your navigation graph. - Configuring type-safe arguments between navigation components (in this case, Fragments)
MVVM (Model-View-ViewModel) is used to make the architecture cleaner, more readable and maintainable. Notes are stored and managed in memory within the domain layer (this sample is about Navigation and not full-blown Clean Architecture after all).
This PR contains steps needed to migrate from support library to AndroidX namespace. For more details, see AndroidX Refactoring docs
Copyright 2018 James Shvarts
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.