https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android
  • s

    Sam

    08/28/2020, 2:36 AM
    Hello everyone, I have had this problem for 1 week. I have used worker manager for uploading and retrofit + okhttp for network 1. If I upload a small video size 20 30MB , it uploaded successfully. 2. If I upload a large video size 1GB - 2GB, it uploaded failure Anyone know about this problem? Thanks, stay safe.
    java.io.InterruptedIOException: interrupted
    2020-08-28 09:04:45.255 16975-19983/vn.gapo.app W/System.err:     at okio.Timeout.throwIfReached(Timeout.kt:98)
    2020-08-28 09:04:45.255 16975-19983/vn.gapo.app W/System.err:     at okio.InputStreamSource.read(Okio.kt:90)
    2020-08-28 09:04:45.255 16975-19983/vn.gapo.app W/System.err:     at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:180)
    2020-08-28 09:04:45.256 16975-19983/vn.gapo.app W/System.err:     at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
    2020-08-28 09:04:45.256 16975-19983/vn.gapo.app W/System.err:     at com.gg.gapo.remote.upload.CountingRequestBody.writeTo(CountingRequestBody.kt:26)
    2020-08-28 09:04:45.256 16975-19983/vn.gapo.app W/System.err:     at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
    2020-08-28 09:04:45.256 16975-19983/vn.gapo.app W/System.err:     at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
    2020-08-28 09:04:45.256 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:59)
    2020-08-28 09:04:45.257 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.257 16975-19983/vn.gapo.app W/System.err:     at com.gg.gapo.remote.network.RequestInterceptor.intercept(RequestInterceptor.kt:36)
    2020-08-28 09:04:45.257 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.257 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
    2020-08-28 09:04:45.257 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.257 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:74)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:152)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197)
    2020-08-28 09:04:45.258 16975-19983/vn.gapo.app W/System.err:     at okhttp3.internal.connection.RealCall.execute(RealCall.kt:148)
    CountingRequestBody for get progress
    i
    • 2
    • 4
  • f

    fradiati

    08/28/2020, 9:38 AM
    hello! How can i implement this view? https://stackoverflow.com/questions/63629460/paint-by-number-application-android
    👨‍💻 1
    :google: 1
    s
    g
    • 3
    • 2
  • k

    Kevin

    08/29/2020, 12:04 PM
    Hi all, is there anyone here that expert with making UI in kotlin? i need someone to enlighten on how to make this kind of cardview.
    j
    e
    • 3
    • 8
  • h

    haroldadmin

    08/29/2020, 6:46 PM
    Hi! I'm trying to use the
    rank
    SQLite function in an FTS4 table query.
    SELECT *
    FROM launches
    JOIN launches_fts ON launches.name = launches_fts.name
    WHERE launches_fts MATCH "<query>"
    ORDER BY rank(matchinfo(launches_fts));
    The
    launches_fts
    table is an FTS4 table, implemented as:
    CREATE VIRTUAL TABLE launches_fts USING FTS4(name TEXT NOT NULL, details TEXT, content=launches);
    The problem is that whenever I try to run this query, I get the following error:
    Result: wrong number of arguments to function rank()
    At line 1:
    SELECT name
    FROM launches_fts 
    WHERE launches_fts MATCH "*star*"
    ORDER BY rank(matchinfo(launches_fts)) DESC;
    This query matches the query given in the official documentation here: https://www.sqlite.org/fts3.html#matchinfo Can someone point out what I'm doing wrong?
    :stackoverflow: 2
    • 1
    • 1
  • a

    Archie

    08/30/2020, 1:41 PM
    @nickbutcher, May I ask a question. I have a requirement where the buttons in my app doesn't match the Theme's Primary Color... In current theming we do a way with this by setting a theme overlay on our button theme and setting it in styles so all button gets the set color like:
    <style name="MyTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
            ...
            <item name="materialButtonStyle">@style/Widget.MyButton</item>
            <item name="materialButtonOutlinedStyle">@style/Widget.MyButton.Outlined</item>
            ...
    </style>
    
    <!--Buttons Styles-->
    <style name="ThemeOverlay.MyButton" parent="">
            ...
            <item name="colorPrimary">@color/mycolor</item>
            <item name="colorOnPrimary">@color/myOnColor</item>
            ...
    </style>
    
    <style name="Widget.MyButton" parent="Widget.MaterialComponents.Button">
            <item name="materialThemeOverlay">@style/ThemeOverlay.MyButton</item>
            ...
    </style>
    
    ....
    But in
    Jetpack Compose
    there is no
    styles
    to set. Is it correct to instead of using the
    Button
    directly, simply create a "`MyButton` " and use it instead like:
    @Composable
    fun MyButton(
        ....
        modifier = Modifier,
    ) {
       Button(modifier = modifier.backgroundColor(myColor)
            ....
    }
    or is there a better and correct way to do this?
    n
    i
    • 3
    • 4
  • z

    ZariApps

    08/30/2020, 6:55 PM
    class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
        init {
            itemView.setOnClickListener {
                val intent = Intent(itemView.context, ListFragment::class.java)
    
                itemView.context.startActivity(intent)
    
            }
        }
    
    }
    why is it giving me an error message saying i need to declare fragment into manifest file? is it because of the intent?
    a
    a
    • 3
    • 33
  • z

    ZariApps

    08/30/2020, 6:56 PM
    i am using navigation, fragments, & recyclerviews
    i
    • 2
    • 9
  • s

    Slackbot

    08/31/2020, 10:00 AM
    This message was deleted.
    f
    • 2
    • 1
  • m

    Mijael Viricochea

    08/31/2020, 1:24 PM
    Hello there, I am trying to programming an app based on SOLID principles, and sometimes I see that my ViewModel is doing a lot of work(More than it should) and I would like to know what do I need to avoid this? Should I have one ViewModel for each fragment? or they can share based on the lifecycle? Thanks in advance.
    f
    • 2
    • 1
  • c

    Colton Idle

    08/31/2020, 7:39 PM
    I'm working on an Android app where I have ViewModel arch component and I observe a liveData in my fragment. I want to have a countdown textView that counts from 50 to 0 and "ticks" every second. I plan on doing this by having this coroutine
    viewModelScope.launch {
                var initVal = 100
                repeat(100) {
                    _myViewData.value =
                        _myViewData.value?.copy(initVal.toString())
                    initVal--
                    delay(1000)
                }
            }
    Is there anything really bad with this approach? The only thing I can think of is how would the ViewModel being cleared would affect this.
    a
    g
    • 3
    • 13
  • m

    Mehdi Haghgoo

    09/01/2020, 8:13 AM
    Hey. In a Compose Codelab by @Sean McQuillan [G], I came across this ViewModel class:
    class HelloCodelabViewModel: ViewModel() {
    
       // LiveData holds state which is observed by the UI
       // (state flows down from ViewModel)
       private val _name = MutableLiveData("")
       val name: LiveData<String> = _name
    
       // onNameChanged is an event we're defining that the UI can invoke
       // (events flow up from UI)
       fun onNameChanged(newName: String) {
           _name.value = newName
       }
    }
    
    class HelloCodeLabActivityWithViewModel : AppCompatActivity() {
       val helloViewModel by viewModels<HelloCodelabViewModel>()
    
       override fun onCreate(savedInstanceState: Bundle?) {
           /* ... */
    
           binding.textInput.doAfterTextChanged {
               helloViewModel.onNameChanged(it.toString()) 
           }
    
           helloViewModel.name.observe(this) { name ->
               binding.helloText.text = "Hello, $name"
           }
       }
    }
    I have two questions. 1- Why is
    _name
    not defined public so that it can be directly observed rather than through
    name
    ? 2- How can
    name
    be modified using observe while it is defined as immutable (val)?
    k
    • 2
    • 1
  • m

    Mehdi Haghgoo

    09/01/2020, 8:19 AM
    I guess LiveData is not immutable, right?
    k
    • 2
    • 1
  • m

    Mohamed Ibrahim

    09/01/2020, 8:56 AM
    Hello guys, I want to know if it’s worth investing in instrumental testing in Android, Do I need to write them, keeping in mind how much time to spend maintaining them.
    m
    r
    z
    • 4
    • 4
  • m

    mohamadreza jafarzade

    09/01/2020, 12:38 PM
    Hi, We have implemented an XMPP chat server with Prosody. and i want to connect this Xmpp server to send and receive messages. but I got error in connecting to this server via smack library. here is my code to connect:
    private fun initChat() = GlobalScope.launch {
        initConnection()
    }
    
    private fun initConnection() {
        val config = XMPPTCPConnectionConfiguration.builder()
            .setXmppDomain("my domain")
            .setHost("my domain")
            .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled)
            .setCompressionEnabled(false)
            .setPort(5280)
            .build()
        
        val connection = XMPPTCPConnection(config)
        connection.connect()
        connection.login()
    }
    and there are my gradle dependency:
    implementation "org.igniterealtime.smack:smack-android:4.3.4"
    implementation "org.igniterealtime.smack:smack-tcp:4.3.4"
    implementation "org.igniterealtime.smack:smack-extensions:4.3.4"
    and i got this error:
    org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). While waiting for establishing TLS
            at org.jivesoftware.smack.SynchronizationPoint.checkForResponse(SynchronizationPoint.java:317)
            at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWait(SynchronizationPoint.java:160)
            at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWaitOrThrow(SynchronizationPoint.java:131)
            at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:977)
            at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:435)
            at ir.gharar.activities.LiveActivity.initConnection(LiveActivity.kt:78)
            at ir.gharar.activities.LiveActivity.access$initConnection(LiveActivity.kt:40)
            at ir.gharar.activities.LiveActivity$initChat$1.invokeSuspend(LiveActivity.kt:65)
            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
            at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
            at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
    can anyone help me for that?
    b
    • 2
    • 8
  • d

    Dvt1405

    09/01/2020, 3:27 PM
    i need to start my app from broadcast receiver/ service. i use this intent for it:
    val intent = Intent(context, SplashScreen.class).apply{
     addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
     setAction(Intent.ACTION_MAIN)
     intent.addCategory(Intent.CATEGORY_LAUNCHER)
    }
    startActivity(intent);
    but seem it not working. some one can tell me reason why and give me solution for it!?
    :stackoverflow: 2
    :java: 1
    l
    • 2
    • 1
  • d

    dan.the.man

    09/01/2020, 4:54 PM
    Is this how Kotlin translates these to static jvm methods, it doesn't use the typed
    List<T>
    ?
    c
    • 2
    • 2
  • s

    Spikey Sanju

    09/01/2020, 6:39 PM
    In Jetpack Compose, how is navigation supposed to be done?
    👍 1
    a
    z
    • 3
    • 3
  • p

    parth

    09/01/2020, 10:52 PM
    specifically:
    Class 'FilterOptions' is not abstract and does not implement abstract member public abstract fun describeContents(): Int defined in android.os.Parcelable
    but in the generated code…
    public FilterOptions(@Nullable String keyword) {
          this.keyword = keyword;
       }
    
       public int describeContents() {
          return 0;
       }
    what gives?
    r
    a
    • 3
    • 3
  • c

    CodeIdeal

    09/02/2020, 4:12 AM
    how could I run some code after constructor like in Java?
    public class CustomView extends View {
        public CustomView(Context context) {
            this(context,null);
        }
    
        public CustomView(Context context, @Nullable AttributeSet attrs) {
            this(context, attrs, 0);
        }
    
        public CustomView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
            super(context, attrs, defStyleAttr);
            //some custom code
        }
    }
    I try
    init{}
    block, but it run before constructor.
    class CustomView @JvmOverloads constructor(
        context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
    ) : View(context, attrs, defStyleAttr) {
        init {
            // this place is run before super constructor
        }
    }
    k
    i
    • 3
    • 4
  • c

    Christopher Elías

    09/02/2020, 11:07 AM
    Has anybody use
    hilt
    on an app that is already/ or about to be published?
    m
    • 2
    • 1
  • o

    Orhan Tozan

    09/02/2020, 1:32 PM
    How do you navigate from an Android
    Service
    to a Navigation Component destination (fragment)?
    e
    i
    • 3
    • 19
  • g

    Grant Park

    09/02/2020, 4:07 PM
    Hi folks, recently published a Redux library using Kotlin 1.4.0, Coroutines, and the Flow API: https://github.com/grant-park/ReduxEngine Would love for anyone to check it out and I would be grateful for any feedback. I'm also always open to discussing MVI for Android apps in general.
    a
    k
    • 3
    • 6
  • k

    Ken Maffei

    09/02/2020, 4:56 PM
    For a fragment, what's the difference, if any, between fragment.lifecycleScope.launch() and fragment.viewLifecycleOwner.lifecycleScope.launch() ?
    s
    • 2
    • 2
  • a

    Anshulupadhyay03

    09/03/2020, 5:14 AM
    say bye bye to sharedPreferences DATA STORE
    💡 4
    🎉 21
    💯 1
    b
    • 2
    • 1
  • i

    Islamdidarmd

    09/03/2020, 6:44 AM
    How to pass an argument type of Double in Navigation Component?
    a
    • 2
    • 1
  • m

    Mijael Viricochea

    09/03/2020, 2:01 PM
    Hello, can you tell me how can I tint the text hint of my TextInputLayout from theme colors? I was doing tests by I have not found any way.
    <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
        <item name="colorPrimary">#2f2f2f</item>
        <item name="colorPrimaryDark">#2f2f2f</item>
        <item name="colorPrimaryVariant">#007038</item>
        <item name="colorOnPrimary">#0D1DB1</item>
        <item name="colorSecondary">#456321</item>
        <item name="colorSecondaryVariant">#965874</item>
        <item name="colorOnSecondary">#741080</item>
        <item name="colorError">#F44336</item>
        <item name="colorOnError">#810000</item>
        <item name="colorSurface">#DFDFDF</item>
        <item name="colorOnSurface">#CFCFCF</item>
        <item name="android:colorBackground">@color/background</item>
        <item name="colorOnBackground">#fff</item>
    </style>
    that is my theme and the result is this I can't see the hint of the TextInputLayout when it is unselected.
    k
    • 2
    • 2
  • m

    Mehdi Haghgoo

    09/03/2020, 2:13 PM
    Does updating a plugin in one Android Studio break it for another on Linux? E.g. does updating Flutter plugin in Canary installation break Flutter in the stable version?
    w
    • 2
    • 1
  • m

    Muhammad Khalid

    09/03/2020, 3:12 PM
    When starting on a project whose design is ready what steps should consider before start coding? Architecture of project is important. Use case diagram, class diagram they are useful also. But anyone have any resources or thorough guideline to share about the whole process from the very beginning? Thanks advanced. (Asking from android perspective but should consider ios or obviously web for later)
    a
    z
    • 3
    • 4
  • s

    Shreyas Patil

    09/03/2020, 4:01 PM
    https://medium.com/scalereal/hello-datastore-bye-sharedpreferences-android-f46c610b81d5
    👏 1
    🎉 3
    👍 2
    o
    • 2
    • 1
  • w

    wisdom

    09/03/2020, 8:18 PM
    wrote an article on how to create your first Kotlin multiplatform mobile project https://medium.com/@wise4rmgodadmob/create-your-first-kotlin-multiplatform-mobile-application-in-android-studio-e79b855a030b
    👍 14
    s
    • 2
    • 1
Powered by Linen
Title
w

wisdom

09/03/2020, 8:18 PM
wrote an article on how to create your first Kotlin multiplatform mobile project https://medium.com/@wise4rmgodadmob/create-your-first-kotlin-multiplatform-mobile-application-in-android-studio-e79b855a030b
👍 14
s

Sulav Timsina

09/25/2020, 7:22 PM
What knowledge do we need to know about iOS before using kotlin multiplatform? Or do we need to know it all?
View count: 6