Preview
AndroidManifest.xml
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />build.gradle (Module: app)
apply plugin: 'kotlin-kapt'
dependencies {
...
// UI Component
implementation 'androidx.recyclerview:recyclerview:1.1.0'
// Material design
implementation "com.google.android.material:material:1.1.0"
// LifeStyle Components
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
kapt "androidx.lifecycle:lifecycle-compiler:2.2.0"
// Kotlin Components
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4"
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.4"
// Room Components
implementation "androidx.room:room-runtime:2.2.5"
kapt "androidx.room:room-compiler:2.2.5"
implementation "androidx.room:room-ktx:2.2.5"
...
}ListItem.kt
MainListAdapter.kt
list_main.xml
NameTable.kt
NameDAO.kt
NameRepository.kt
NameRootDatabase.kt
NameViewModel.kt
activity_main.xml
activity_additem.xml
MainActivity.kt
AddItemActivity.kt
Last updated
Was this helpful?

