Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Kotlin

0 votes
980 views
1 answer
    With the code below, I am getting the following error in IntelliJ IDEA 13.1.6 and Kotlin plugin 0.11.91. ... Kotlin-ish. What am I missing? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
585 views
1 answer
    I want to handle clicks in such a way that they are ignored as long as I'm doing processing of some click ... use to achieve the desired effect? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
631 views
1 answer
    Kotlin provides semicolon inference : syntactically, subsentences (e.g., statements, declarations etc) are ... writing erroneous code? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
892 views
1 answer
    I am using retrofit with the SimpleXMLConverterFactory. And I always get an ConstructorException: Parameter 'success' ... given xml. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
631 views
1 answer
    Here is a minimal example that demonstrates the problem: abstract class Base { abstract fun String.extension(x: ... have the extension method. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
572 views
1 answer
    As I'm learning Kotlin for Android development, I'm now trying the basic programs like hello world and how to ... in Kotlin if not by intent. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
814 views
1 answer
    I would like to try Hilt DI in the android library. It is a dependency on another project, with its own ... issue and can share his insights. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am using the following code to store some information encrypted in my app. val masterKey ... .PrefValueEncryptionScheme.AES256_GCM); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
677 views
1 answer
    I'm developing a class with several lateinit properties of one type. I think it's too verbose to declare each ... on one line in Kotlin? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
497 views
1 answer
    I'm trying to support the Android Q Dark theme for my Android app and I can't figure out how to import different ... a way I get that flag? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
645 views
1 answer
    What is a purpose of Lambda's with Receiver in Kotlin, while we have extension functions ? Two functions below do ... this == it.toIntOrNull()} See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
735 views
1 answer
    I have an entity: class SomeInfo( @NotNull @Pattern(regexp = Constraints.EMAIL_REGEX) var value: String) { var id: ... it less wordy? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
579 views
1 answer
    I have created an interface: interface ProgressListener { fun transferred(bytesUploaded: Long) } but can use it only ... What am I doing wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am currently trying to leverage kotlin coroutines more. But I face a problem: when using moshi or okhttp inside ... to be inappropriate ;-) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
569 views
1 answer
    In my application i want get data from server, for get connect to server i used Retrofit, OkHttp. But when running ... ' How can i fix it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    In Kotlin, when I have a non-public member and an inline fun that calls it, there's a compilation error saying: ... solution that I don't see? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
671 views
1 answer
    From the Kotlin documentation: If a function does not return any useful value, its return type is Unit. Unit is ... there? What is this VALUE? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm getting error in Kotlin in this part: class GitHubRepoAdapter( private val context: Context, private val values ... is causing the problem. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
696 views
1 answer
    I was reading Coroutine Basics trying to understand and learn it. There is a part there with this code: fun main ... me here? Thanks in advance. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
569 views
1 answer
    I'm performing a retrofit call inside an adapter..i have successfully implemented and also it is giving me the desired output ... ) ) val id =dataList?.get(position)?.product?.id...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
753 views
1 answer
    I wrote a simple kotlin helloworld program hello.kt fun main(args: Array<String>) { println("Hello, World!") } Then ... 40, JDK version is 1.8.0 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
614 views
1 answer
    For example in Java I could write: public abstract class Element<S extends Snapshot> { ... } public ... type parameter restrictions in Kotlin? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
664 views
1 answer
    In the code below, I want to show my empty views if trips is empty and then return and avoid running the ... there's a few more conditions. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
747 views
1 answer
    Trying to start a new Kotlin project with Android Studio 3.0 Canary 1 displays this error. Full trace: Error: ... does not have this problem. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
518 views
1 answer
    I read that usage of Globalscope is highly discouraged, here. I have a simple use-case. For every kafka ... (Buzzword-compliant if you will) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have updated the project target API version to 30, and now I see that the systemUiVisibility property is deprecated. ... 't how to do that. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
510 views
1 answer
    I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added ... processor:3.1.0" } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
996 views
1 answer
    I'm trying to make a query to search all objects whose names contain text: @Query("SELECT * FROM hamster WHERE name ... : arg0 How to fix this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...