
Changed chart's horizontal axis so that it displays correct date for each value of fear greed index; Implemented Cicerone as navigation library for the app; Implemented two additional screens - About and Learn; Implemented navigation drawer and made it open the respected screens as well as highlighting current screen in the list; TODO: About and Learn screens (text)
23 lines
587 B
Kotlin
23 lines
587 B
Kotlin
package ru.vendetti.bitcoin_summarizer
|
|
|
|
import android.app.Application
|
|
import android.os.Debug
|
|
import android.util.Log
|
|
import com.github.terrakok.cicerone.Cicerone
|
|
|
|
class App : Application() {
|
|
private val cicerone = Cicerone.create()
|
|
val router get() = cicerone.router
|
|
val navigatorHolder get() = cicerone.getNavigatorHolder()
|
|
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
INSTANCE = this
|
|
Log.println(Log.DEBUG, "App", "Instance is $INSTANCE")
|
|
}
|
|
|
|
companion object {
|
|
internal lateinit var INSTANCE: App
|
|
private set
|
|
}
|
|
} |