I'm trying to show a snack bar in fragment's onCreateView method but I don't know what view to passing inside the snack bar. I'm very confused because I first t
Short requirement: have ability to create corotine context, which will executed in the single thread only (e.g. without parallelism). Additional requirement: i
I use grid layout manager but not working good for dynamic item What I want: or just like And What it shows:
I've got error of Unresolved reference: overview & Unresolved reference: title after I added List<Result>, as for separating code inside folder after
I tried to use NetworkBoundResource for my MVVM Model and after i follow some tutorial, i'm having an error look this 10-21 14:15:04.073 31376-31376/com.example
I am having trouble with using internal kotlin functions in my Spock tests. Here's short snippet of my spock test: private def preconditions = new MonetaryPrec
I am new in Kotlin. I have a view that I need to show or hide in conditional ways. How can I do this in Kotlin? In Java: public void showHide(View view){
Currently I have an aar file and need to edit the structure and functions in it. I need to convert it to a project in order for you to edit it. Is there any way
After just installing the latest Android Studio (3.0.1) I started with the Build Your First App guide. I'm using Kotlin as it seems to be the suggested way to g
We're creating a call log application and in a call log I want to show the user that the call log is from sim 1 or sim 2. I found this but when I try to get it,
Is there a way to adjust the text to always resize depending a fixed height ? I have a column that has a fixed height and in which the text inside should always
When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error: Cannot inline bytecode built with JVM target 1.8 into byte
How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {
How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {
I use Android Studio Bumblebee 2021.1.1 Patch 3 built on March 16, 2022 androidx.compose.ui:ui-tooling, androidx.compose.ui:ui-tooling-preview, androidx.compose
Execution failed for task ':location:compileDebugKotlin'. build:gradle(Module:app) ext.kotlin_version = '1.6.10' repositories { maven {
Does anyone know if a good test coverage tool (preferably Gradle plugin) exists for Kotlin? I've looked into JaCoCo a bit, but it doesn't seem to reliably suppo
Given some simple content: @Composable fun MyContent() { var showThing by remember { mutableStateOf(false) } if (showThing) { Box(Modifier.testT
Interested to find code coverage tools for kotlin that work well in a CI pipeline. use intellij built in code coverage but cant use this in CI. Thanks
How to iterate over HashMap in Kotlin? typealias HashMap<K, V> = HashMap<K, V> (source)