https://kotlinlang.org
Join Slack
Hello! I am looking for some cache library developed in Kotlin Any suggestions?
t

Tiago Brito

over 5 years ago
Hello! I am looking for some cache library developed in Kotlin Any suggestions?
t
e
+5
  • 7
  • 11
  • 745
Hi, is there a way to use composeTestRule to find a AndroidView wrapped Button and click on it? It ...
y

Ying Chen

over 2 years ago
Hi, is there a way to use composeTestRule to find a AndroidView wrapped Button and click on it? It appears that
composeTestRule.onNodeWithText(xxx).performClick()
doesn't work for an AndroidView wrapped Button I also tried using a Modifier.testTag for the AndroidView wrapped Button, it can find the Button but won't be clickable
y
d
  • 2
  • 22
  • 744
I am trying to migrate my gradle to the gradle hierarchies. I am getting error: ```kotlin { andr...
v

Vlad

about 2 years ago
I am trying to migrate my gradle to the gradle hierarchies. I am getting error:
kotlin {
    androidTarget() // <-- please register this Android target
}
When if I put
androidTarget()
gradle says
Unresolved reference: androidTarget
I cleaned my cache. And I have the template project from the Jetbrains wizzard tool which works just fine with androidTarget(). I am missing something I don't understand what exactly.
kotlin.version=1.9.20
agp.version=8.1.2
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
Any hints?
v
p
+2
  • 4
  • 69
  • 743
What are for `.kotlin_module` files are used? I can not open it in IDE unfrotunately
e

Eugen Martynov

over 4 years ago
What are for
.kotlin_module
files are used? I can not open it in IDE unfrotunately
e
l
  • 2
  • 8
  • 743
Using compose navigation, how can I make sure one destination has only one instance? I'm handling a ...
t

Tgo1014

over 3 years ago
Using compose navigation, how can I make sure one destination has only one instance? I'm handling a intent from the main screen to a detail screen, but if the user click many times the intent then when pressing back it goes to the previous detail screen instead of the main screen
t
f
i
  • 3
  • 21
  • 742
Is it possible to create a menu bar app on macOS with compose-desktop?
s

saket

over 4 years ago
Is it possible to create a menu bar app on macOS with compose-desktop?
s
k
  • 2
  • 6
  • 741
I want to loop over the elements of a queue, and remove them in the process. is there a fancy way to...
l

LastExceed

over 5 years ago
I want to loop over the elements of a queue, and remove them in the process. is there a fancy way to achieve this with
for (x in y)
or do i have to remove them manually ?
l
d
+5
  • 7
  • 19
  • 741
Using the Tray composable to displaying notifications as described in this <tutorial> does not work ...
j

Jonathan

about 2 years ago
Using the Tray composable to displaying notifications as described in this tutorial does not work for me on a Macbook running macOS Sonoma. I’ve checked in Notification setting of System Settings and verified that notifications were enabled for Intellij IDEA. The app doesn’t crash nor are any errors printed in the console. Does anyone have the slightest idea of what could be causing this issue?
j
s
+4
  • 6
  • 15
  • 740
I'm trying to create an annotation in which i want to pass an array of "other" annotations, but i do...
j

Jakub Syty

over 2 years ago
I'm trying to create an annotation in which i want to pass an array of "other" annotations, but i don't know types of those ahead. Basically i want user to pass whatever annotations they want there. From docs i read that i can use other annotations as a parameter of annotation. I can do
annotation class MyAnnotation(val list: Array<OtherKnownAnnotation>)
. There is a interface called
Annotation
that is
Base interface implicitly implemented by all annotation interfaces.
. So i tried to do
annotation class MyAnnotation(val list: Array<Annotation>)
. This unfortunately gives me an error
Invalid type of annotation member
. Can i work around this? Anybody had a usecase like this?
j
n
  • 2
  • 15
  • 740
How can I clear ViewModel at certain event? At the moment when I click 'go back button'. I want to r...
c

chanjungskim

over 2 years ago
How can I clear ViewModel at certain event? At the moment when I click 'go back button'. I want to reset the viewModel. But If I check the uiState, when I enter the screen. 1. Prepping -> Idle (which is correct) -> go back 2. (re-enter) Idle -> go back 3. (re-enter) Idle -> go back I called this function at 'go back event' but it doesn't clear.
// ViewModel
fun clear() = viewModelScope.launch {
    onCleared()
}
c
  • 1
  • 1
  • 739
Previous757677Next

kotlinlang

A modern programming language that makes developers happier.

Powered by