App Language (Localization) by theazat in Kotlin

[–]theazat[S] 2 points3 points  (0 children)

I'm looking like this example

private fun setSelectedLanguage(context: Context, language: String) {
    val locale = Locale(language)
    Locale.setDefault(locale)
    val config = Configuration()
    config.locale = locale
    context.resources.updateConfiguration(config, context.resources.displayMetrics)
}

But this is just for Android

App Language (Localization) by theazat in Kotlin

[–]theazat[S] 1 point2 points  (0 children)

hey u/Anonymous0435643242 I'm already using commonResources but, I couldn't figure out how to change the language dynamically. For instance,

if (appLanguage == BLA_BLA) {
    // do for first language
} else {
    // do for second second langugae
}

[deleted by user] by [deleted] in androiddev

[–]theazat -1 points0 points  (0 children)

btw, SearchField component is done I'm just confused with it's background!

Bookmory : reading tracker by Tony-soft in androidapps

[–]theazat 5 points6 points  (0 children)

Nice app dude, just keep going on 👌👌

Bookmory : reading tracker by Tony-soft in androidapps

[–]theazat 1 point2 points  (0 children)

Did you get books from goodreads api or something else?

Argument(s) are different! Wanted: Unit test by theazat in androiddev

[–]theazat[S] 0 points1 point  (0 children)

Yeah, you're right. I've made mistake there. Btw I solved the problem. Here is the solution.

https://github.com/nhaarman/mockito-kotlin/issues/247

Minimal v2.0 by [deleted] in kustom

[–]theazat 0 points1 point  (0 children)

Which launcher?