https://kotlinlang.org
Join Slack
When applying the above plugin I’m getting the error: `A problem occurred configuring root project '...
a

Alexander Suraphel

about 4 years ago
When applying the above plugin I’m getting the error:
A problem occurred configuring root project ''.
> 'kotlin-android' plugin requires one of the Android Gradle plugins.
Please apply one of the following plugins to ':' project:
- com.android.application
- com.android.library
- com.android.dynamic-feature
- com.android.asset-pack
- com.android.asset-pack-bundle
- com.android.lint
- com.android.test
- com.android.instantapp
- com.android.feature
What am I missing?
a
m
  • 2
  • 20
  • 2537
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
  • 2536
Hello guys, I have an issue with imePadding() not working with ModalBottomSheet. I have some TextFie...
s

shock 11

over 1 year ago
Hello guys, I have an issue with imePadding() not working with ModalBottomSheet. I have some TextField in the BottomSheet's content and I want that when I open the keybaord, it adds some padding under the BottomSheet and not cover the content. it seems that a lot people have experienced this same issue as well especially with older devices. I am on Android 10 (Api level 29), and a team member/boss who has a higher android version, I think he uses a Google pixel 7 pro had the BottomSheet logic working well for him(even without the imePadding), he was basically able to drag his when the keyboard opened. So I'm not sure why this is happening. I've done some research and found some github issues on this, but they were either closed or left unanswered. I just want to know if there is a fix or workaround for this especially the fact that we targeting devices API level 27 and above(minSdk 27).
🧵 0
s
s
  • 2
  • 31
  • 2515
what is the best way to display a pdf with jetpack compose ?
y

Yves Kalume

almost 4 years ago
what is the best way to display a pdf with jetpack compose ?
y
g
+2
  • 4
  • 8
  • 2510
Compose + ViewModel + MutableState combination is error-prone due to snapshots mechanics. Shouldn't ...
g

George

about 3 years ago
Compose + ViewModel + MutableState combination is error-prone due to snapshots mechanics. Shouldn't something be done about it? (details inside)
g
d
+3
  • 5
  • 28
  • 2486
Is there a better way to delay the `AnimatedVisibility` execution? Code in thread.
v

Vsevolod Kaganovych

over 3 years ago
Is there a better way to delay the
AnimatedVisibility
execution? Code in thread.
v
c
d
  • 3
  • 9
  • 2477
What is the alternative to intrinsics. I am getting an error with using it with a complex view whic...
d

David Corrado

almost 3 years ago
What is the alternative to intrinsics. I am getting an error with using it with a complex view which does not support intrinsics
d
k
z
  • 3
  • 13
  • 2451
How I can pass the click event from child composable to its parent? e.g: ```Card( Modifier.clickab...
a

AmrJyniat

about 3 years ago
How I can pass the click event from child composable to its parent? e.g:
Card(
  Modifier.clickable { doSomething() }
){
   CheckBox(
     .....,
     onCheckedChange = {  } // leave it empty and pass its event to parent
   )
   Text("Some label")
}
a
m
+3
  • 5
  • 11
  • 2411
I know that val cannot be reassigned, but how would I for example send a variable to a function to d...
o

oday

almost 5 years ago
I know that val cannot be reassigned, but how would I for example send a variable to a function to do something with it?
private fun resetCounterAndGame(counter: Int) {
    if (counter == 2) {
        gameButtonText.set(resProvider.getString(R.string.try_another_number))
        gameStarted = false
        counter = 0 <--- val cannot be reassigned of course
    }
}
o
w
+4
  • 6
  • 19
  • 2399
How to set drawable left in android compose Text ?
c

Chethan

almost 5 years ago
How to set drawable left in android compose Text ?
c
r
a
  • 3
  • 6
  • 2393
Previous678Next

kotlinlang

A modern programming language that makes developers happier.

Powered by