https://kotlinlang.org
Join Slack
Is there any way to disable scroll and clicks on children in a LazyColumn?
u

Utkarsh Tiwari

about 4 years ago
Is there any way to disable scroll and clicks on children in a LazyColumn?
u
a
g
  • 3
  • 5
  • 1182
hi there, I'm trying to run an UI test in shared/commonTest and facing the following NPE. This tests...
k

Kathrin

about 1 year ago
hi there, I'm trying to run an UI test in shared/commonTest and facing the following NPE. This tests works fine when I run it in androidInstrumentedTest. Any ideas?
java.lang.NullPointerException: Cannot invoke "String.toLowerCase(java.util.Locale)" because "android.os.Build.FINGERPRINT" is null
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.runTest(ComposeUiTest.android.kt:314)
	at androidx.compose.ui.test.ComposeUiTest_androidKt.runAndroidComposeUiTest(ComposeUiTest.android.kt:114)
	at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest(ComposeUiTest.android.kt:61)
	at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest$default(ComposeUiTest.android.kt:60)
k
a
+3
  • 5
  • 17
  • 1175
Anyone knows how to create gradle JavaExec configuration for multiplatform project? ```tasks.create&...
t

Tomasz Krakowiak

over 3 years ago
Anyone knows how to create gradle JavaExec configuration for multiplatform project?
tasks.create<JavaExec>("run") {
    classpath = //?
    mainClass.set("com.example.MainKt")
}
sourceSets
container is at this point empty.
configurations
container does not have
jvmMainRuntime
configuration.
t
h
e
  • 3
  • 3
  • 1175
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, b...
r

Roman Polach

over 3 years ago
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, but underline is still there:
BasicTextField(
                    singleLine = true,
                    value = text,
                    textStyle = LocalTextStyle.current.copy(textDecoration = TextDecoration.None),
                    readOnly = readOnly,
                    onValueChange = {
                        onValueChanged(it)
                    }
                )
r
c
+2
  • 4
  • 13
  • 1173
How can you fill a row with two buttons: First button should take the max width, but there should be...
h

hfhbd

about 3 years ago
How can you fill a row with two buttons: First button should take the max width, but there should be another minified button.
@Composable
fun InfoButton(infoTest: String, button: @Composable (Modifier) -> Unit) {
    Row(modifier = Modifier.fillMaxWidth()) {
        Info(infoTest)
        button(Modifier.fillMaxWidth())
    }
}
This code renders the icon at the left side, I want to show them on the right side
h
p
c
  • 3
  • 9
  • 1173
Hi, new to KMM. Wondering what the recommended approach to navigation is for a Android/iOS app targe...
s

Smorg

over 2 years ago
Hi, new to KMM. Wondering what the recommended approach to navigation is for a Android/iOS app target? Is there some kind of library that can be used to handle navigation on both platforms, or is it better to just handle navigation independently on each platform (since navigation is related to UI, and it's better to write UIs independently)?
s
a
+8
  • 10
  • 15
  • 1172
Which is the best architecture to work with compose-desktop? maybe MVC or MVP are better than MVVM t...
p

Pablo

over 2 years ago
Which is the best architecture to work with compose-desktop? maybe MVC or MVP are better than MVVM this time?
p
p
+3
  • 5
  • 53
  • 1168
I am having a problem building a KMM project in Android Studio with the following message " Cannot l...
o

Owen

about 1 year ago
I am having a problem building a KMM project in Android Studio with the following message " Cannot locate tasks that match 'sharedtestClasses' as task 'testClasses' not found in project ':shared'."
➕ 7
o
s
+7
  • 9
  • 15
  • 1165
How can I disable `HorizontalPager` scroll (via `userScrollEnabled`) when the user started a `LazyCo...
s

ste

almost 3 years ago
How can I disable
HorizontalPager
scroll (via
userScrollEnabled
) when the user started a
LazyColumn
scroll (and vice versa)? Do I need to write a complex
NestedScrollConnection
?
untitled.webm
s
c
  • 2
  • 11
  • 1162
When kapt complains, that it can't find a `tools.jar` (which is correct, because I'm not using Java ...
h

hho

almost 4 years ago
When kapt complains, that it can't find a
tools.jar
(which is correct, because I'm not using Java 8 anymore) – what doesn't work then? Any way to suppress that warning (I'm using Maven)?
h
a
m
  • 3
  • 7
  • 1158
Previous242526Next

kotlinlang

A modern programming language that makes developers happier.

Powered by