https://kotlinlang.org
Join Slack
How to mock test an inline function?
l

lynas

about 6 years ago
How to mock test an inline function?
l
l
u
  • 3
  • 7
  • 2243
Hi, quick question! Is there no `Dispatcher.Main` in Compose for Desktop? Or should I just depend on...
s

serandel

almost 3 years ago
Hi, quick question! Is there no
Dispatcher.Main
in Compose for Desktop? Or should I just depend on
kotlinx-coroutines-android
?
s
e
+2
  • 4
  • 20
  • 2206
Hi i can delete TextField padding, i am using a OutlinedTextField
a

Android75

over 2 years ago
Hi i can delete TextField padding, i am using a OutlinedTextField
a
i
m
  • 3
  • 9
  • 2189
Hey, does anyone has workaround for this @Preview error? ```The following classes could not be insta...
m

Maciej CzekaƄski

over 3 years ago
Hey, does anyone has workaround for this @Preview error?
The following classes could not be instantiated:
- androidx.compose.ui.tooling.ComposeViewAdapter (Open Class, Show Exception, Clear Cache)
 Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE.  If this is an unexpected error you can also try to build the project, then manually refresh the layout.  Exception Details java.lang.ClassNotFoundException: androidx.customview.poolingcontainer.R$id
It happened to me after updating compose to
1.2.0-alpha06
. It doesn't work both on Chipmunk and Dolphin
👀 1
m
c
+3
  • 5
  • 17
  • 2155
Why does onGloballyPosition run on the next composition, and is there any way to get layout coords i...
a

andrew

almost 3 years ago
Why does onGloballyPosition run on the next composition, and is there any way to get layout coords immediately?
a
z
+2
  • 4
  • 55
  • 2148
I get message ```Unable to resolve activity for: Intent { act=android.intent.action.MAIN cat=[androi...
i

iamthevoid

about 4 years ago
I get message
Unable to resolve activity for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=ru.rt.designsystem.android.compose.test/androidx.activity.ComponentActivity }
since updated to beta07 when calling
@get:Rule
    val composeTestRule: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity> =
        createAndroidComposeRule()
when updating to beta08 nothing changes. Anybody knows how can it be resolved?
i
n
g
  • 3
  • 3
  • 2132
How I disable ModalBottomSheet swipe down to dismiss funtionality? I don't want to close if user swi...
y

Yusuf Ibragimov

over 1 year ago
How I disable ModalBottomSheet swipe down to dismiss funtionality? I don't want to close if user swipe down bottomsheet?
y
a
  • 2
  • 5
  • 2122
Hi! I'm noticing different behavior around the `import-ordering` rule between ktlint and ktlint-grad...
v

Vince

over 3 years ago
Hi! I'm noticing different behavior around the
import-ordering
rule between ktlint and ktlint-gradle (gradle wrapper). Specifically around the ordering of java/javax/kotlin and aliases: ktlint 0.42.1
Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
JLLeitschuh/ktlint-gradle wrapper 10.2.0 using ktlint 0.42.1
Imports must be ordered in lexicographic order without any empty lines in-between (import-ordering)
Any idea what could be causing this discrepancy? The gradle wrapper `ktlintCheck`/`ktlintFormat` tasks aren't respecting the latter part of the rule around java/javax/kotlin + alias imports going at the end. Seems to have been added into ktlint around 0.42 based on some closed issues in the repo.
v
s
r
  • 3
  • 5
  • 2099
Are `sealed class` really not supported yet on Android? ```{"kind":"error","text":"com.android.tools...
c

CLOVIS

over 2 years ago
Are
sealed class
really not supported yet on Android?
{"kind":"error","text":"com.android.tools.r8.internal.Jc: Sealed classes are not supported as program classes","sources":[{"file":"[PATH REDACTED]/NavigationMenu.class"}],"tool":"D8"}
c
m
+4
  • 6
  • 11
  • 2084
I keep getting unresolved reference for `rememberNavController()` et all on Android Studio EEL. Any...
l

Love Otudor

over 2 years ago
I keep getting unresolved reference for
rememberNavController()
et all on Android Studio EEL. Any ideas on how to fix this? I have Updated dependencies
l
j
  • 2
  • 7
  • 2082
Previous789Next

kotlinlang

A modern programming language that makes developers happier.

Powered by