Compare commits
3 commits
a9d278696d
...
732a2db166
Author | SHA1 | Date | |
---|---|---|---|
dece | 732a2db166 | ||
dece | ad5d146a9b | ||
dece | ef8c78177e |
|
@ -14,6 +14,12 @@ android {
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "0.1.0"
|
versionName "0.1.0"
|
||||||
|
|
||||||
|
javaCompileOptions {
|
||||||
|
annotationProcessorOptions {
|
||||||
|
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
|
@ -40,10 +46,10 @@ android {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
def nav_version = "2.3.5"
|
def nav_version = "2.3.5"
|
||||||
def room_version = "2.4.0"
|
def room_version = "2.4.1"
|
||||||
implementation 'androidx.core:core-ktx:1.7.0'
|
implementation 'androidx.core:core-ktx:1.7.0'
|
||||||
implementation 'androidx.appcompat:appcompat:1.4.0'
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
||||||
implementation 'androidx.fragment:fragment-ktx:1.4.0'
|
implementation 'androidx.fragment:fragment-ktx:1.4.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
|
||||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||||
|
@ -52,7 +58,7 @@ dependencies {
|
||||||
implementation 'androidx.preference:preference-ktx:1.1.1'
|
implementation 'androidx.preference:preference-ktx:1.1.1'
|
||||||
implementation "androidx.room:room-runtime:$room_version"
|
implementation "androidx.room:room-runtime:$room_version"
|
||||||
implementation "androidx.room:room-ktx:$room_version"
|
implementation "androidx.room:room-ktx:$room_version"
|
||||||
implementation 'com.google.android.material:material:1.4.0'
|
implementation 'com.google.android.material:material:1.5.0'
|
||||||
kapt "androidx.room:room-compiler:$room_version"
|
kapt "androidx.room:room-compiler:$room_version"
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package dev.lowrespalmtree.comet
|
package dev.lowrespalmtree.comet
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.util.Log
|
||||||
|
import android.view.View
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.navigation.fragment.NavHostFragment
|
import androidx.navigation.fragment.NavHostFragment
|
||||||
import androidx.navigation.ui.setupWithNavController
|
import androidx.navigation.ui.setupWithNavController
|
||||||
|
@ -17,7 +19,18 @@ class MainActivity : AppCompatActivity() {
|
||||||
supportFragmentManager.findFragmentById(R.id.nav_host_fragment)?.also { navHost ->
|
supportFragmentManager.findFragmentById(R.id.nav_host_fragment)?.also { navHost ->
|
||||||
findViewById<NavigationView>(R.id.drawer_navigation)?.apply {
|
findViewById<NavigationView>(R.id.drawer_navigation)?.apply {
|
||||||
setupWithNavController((navHost as NavHostFragment).navController)
|
setupWithNavController((navHost as NavHostFragment).navController)
|
||||||
|
// setNavigationItemSelectedListener { menuItem ->
|
||||||
|
// when (menuItem.itemId) {
|
||||||
|
// R.id.home -> Log.w("AJAJ", "clickkkkk")
|
||||||
|
// else ->
|
||||||
|
// }
|
||||||
|
// true
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun prout(item: android.view.MenuItem) {
|
||||||
|
Log.w("AJAJ", "koiluuut")
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item
|
||||||
|
android:id="@+id/home"
|
||||||
|
android:icon="@android:drawable/ic_menu_myplaces"
|
||||||
|
android:title="@string/home"
|
||||||
|
android:onClick="prout" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/history"
|
android:id="@+id/history"
|
||||||
android:icon="@android:drawable/ic_menu_recent_history"
|
android:icon="@android:drawable/ic_menu_recent_history"
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
<string name="attachment_summary_on">Automatically download attachments for incoming emails
|
<string name="attachment_summary_on">Automatically download attachments for incoming emails
|
||||||
</string>
|
</string>
|
||||||
<string name="attachment_summary_off">Only download attachments when manually requested</string>
|
<string name="attachment_summary_off">Only download attachments when manually requested</string>
|
||||||
|
<string name="home">Home</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
Reference in a new issue