Simple Note using Kotlin with sqlite and jetpack-navigation
If you like this Repo, Please click the ⭐
- SQLite
- ✔️ Create notes
- ✔️ List all notes
- ✔️ Delete notes
- ✔️ Update notes
- Android Jetpack Navigation
- Constraints Layout
- Recycler View
How to implement android jetpack navigation Add dependencies in the module build.gradle
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.1'
implementation "androidx.navigation:navigation-dynamic-features-fragment:2.3.1"
In the module build.gradle replace with this. I am using gradle 4.1.0 for my project and android studio 4.1. A bit different but okay.
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'androidx.navigation.safeargs'
}
Previous version usually like this:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: "androidx.navigation.safeargs"
Then add dependencies in your project build.gradle
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.1"
Add this in your module build.gradle inside your android
android{
/*******************************************************/
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
You can check the connection between layout in the res/navigation/nav_graph.xml
Distributed under the MIT License.