https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose-android
  • a

    Alina Dolgikh [JB]

    03/14/2023, 3:43 PM
    set the channel topic: Compose for Android
  • a

    Alina Dolgikh [JB]

    03/14/2023, 3:50 PM
    ✍️ Description of the channel Discussions about using Compose for Android development: • How to integrate Compose with Android system (views, activities, resources, etc.). • Android-specific tooling for Compose (the Android Gradle plugin, Android Studio). • How to support Android guidelines using Compose. If a discussion is not limited to Android and could be relevant to other platforms, it is better to use the #compose channel. If you want to call attention to an issue, please report it in the issue tracker of the project you are using. If you want to ask a question and think that it could be posted on StackOverflow, consider posting it there to make the question more discoverable for other people. Please use the relevant tag [android-jetpack-compose]. Jetpack Compose :compose: Project page :ladybug: Issue tracker 🚀 Releases Compose Multiplatform :compose: Project page :ladybug: Issue tracker 🚀 Releases
  • a

    Alina Dolgikh [JB]

    03/15/2023, 11:42 AM
    set the channel description: https://kotlinlang.slack.com/archives/C04TPPEQKEJ/p1678809059024769
  • s

    Stylianos Gakis

    03/15/2023, 1:33 PM
    While as an idea this sounds very logical. I can’t imagine this channel having clear boundaries as to how people use it compared to the #compose channel. My intuition is that people will simply continue posting there, as it’s the channel with the most momentum (~8k members). And again, if I were to guess, >95% (probably more) of the people using compose only use it for Android. So if anything, I’d expect the “extra” channel (this) to somehow be the non-android channel, as opposed to having the original become the specialized case, and have this channel be the one that in reality the vast majority of people are interested in. I’m sure you’ve thought hard before making this decision, but what is your opinion in my thoughts here?
    f
    t
    +3
    • 6
    • 11
  • d

    Derek Alves

    03/15/2023, 7:47 PM
    guys, is it possible to call a navigation xml graph inside jetpack compose with AndroidViewBinding? when I call a fragment directly it works normally, but when I try to use FragmentContainerView I get this error FragmentContainerView must be within a FragmentActivity
  • t

    Tgo1014

    03/16/2023, 2:47 PM
    Thinking about touching and holding the finger on the screen. How can I detect the touch is over a specific composable?
    j
    • 2
    • 5
  • z

    zalewski.se

    03/19/2023, 8:58 PM
    Is there any nice way in JC to show/hide navigation bar without animation? 🤔 Currently I have this but obviously, it’s with animation:
    val systemUiController = rememberSystemUiController()
    DisposableEffect(transformationState) {
       systemUiController.isNavigationBarVisible = isNavigationBarVisible
       onDispose {}
    }
    b
    • 2
    • 2
  • t

    Tri Do

    03/20/2023, 10:35 AM
    I am currently working on an Android library which helps create a floating view on the screen. Recently, I added support for Composable and with the help of a custom LifecycleOwner, I can show/remove composable without any issue. However, when scrolling through the LazyColumn/Row/etc, if I call removeView before the animation stops, the app start crashing. this is the error message “Cannot start this animator on a detached view!”. I stuck in this issue the whole day, sorry if i bother you guys 😢 . Thank you I also asked on stackoverflow, you can see more detail there https://stackoverflow.com/questions/75788922/jetpack-compose-with-windowmanager-cannot-start-this-animator-on-a-detached-vi
    i
    i
    • 3
    • 3
  • t

    Tim Malseed

    03/21/2023, 4:20 AM
    Hey friends. I have a bit of a weird issue going on with compose navigation. It’s a little bit contrived, but I’m trying to get to the bottom of it
    i
    s
    +4
    • 7
    • 34
  • t

    Tim Malseed

    03/21/2023, 12:15 PM
    Just another issue, unrelated to the above This one is about a state flow which seems to have some sort of delay in emissions, which causes navigation problems in the app.
    a
    • 2
    • 16
  • t

    Tgo1014

    03/21/2023, 12:17 PM
    Anyone had issues with
    LocalHapticFeedback
    on old phones? It works on S23 but not S8 🤔
  • t

    Travis Griggs

    03/21/2023, 11:59 PM
    I'm a little confused. I'm trying to access M3 Icons shown at (https://fonts.google.com/icons). In particular the two radio button states shown. But when I try to refer to Icons.Default.RadioButton... it doesn't complete or anything like that seem to exist. I'm using the latest compose BOM plus M3.
    b
    i
    +2
    • 5
    • 8
  • b

    Ben Trengrove [G]

    03/22/2023, 9:51 PM
    In case you haven't seen it. We released Compose 1.4 stable and Compose BOM March Release today. 😛arty-parrot: https://android-developers.googleblog.com/2023/03/whats-new-in-jetpack-compose-march-23-release.html
  • t

    Tim Malseed

    03/22/2023, 10:37 PM
    Hey team, I’m still dealing with this compose nav problem, and it’s really doing my head in 😭 The app launches and shows the ‘start destination’, the home screen. It sees that the ‘viewState’ is ‘unauthorized’, so it navigates to the login screen (via launchedEffect, keyed on the viewState) We go to the login screen, and perform login, then pop the login screen off the back stack. As far as I can tell, this is all following navigation best practice. But, after popping back to the home screen, the viewState is still ‘unauthorized’ momentarily. Because we’ve navigated back to the home screen, the launched effect fires again, and we navigate once again to the login screen. It sees we’re authorized, navigates back to home. And now the home view state is up to date (authorized), and we render the home content. So, the navigation is home -> login -> home -> login -> home, when it should be home -> login -> home.
    p
    a
    c
    • 4
    • 27
  • t

    Thomas Hormes

    03/23/2023, 9:38 AM
    Hey, does it make any difference whether I set the content description of (for example) an
    Icon
    to
    null
    or
    ""
    ? Are they treated differently by e.g. screen readers?
    h
    • 2
    • 1
  • z

    zt

    03/23/2023, 6:39 PM
    I'm having some trouble figuring out how to structure my UI/Logic such that it easily allows me to implement bottom sheets. In my app, I have a card component that I use across multiple screens. Long click on the card should show a bottom sheet with extra actions. The issue is though that its like 3+ screens, and using a lambda to relay the the long click down to the root screen feels very excessive. There's gotta be an easier way to do this such that it follows proper compose design?
    t
    • 2
    • 2
  • a

    Andy Himberger

    03/24/2023, 4:13 AM
    I love the new M3 ModalBottomSheet api compared to what you had to do in m2, and we started using it in our app but pretty quickly realized it is not displaying correctly on a lot of devices and device orientations... any suggestions on workarounds or just need to wait for fixes in m3?
    c
    • 2
    • 2
  • a

    Abdulrahman Mustafa salah el din mohamed

    03/25/2023, 3:07 PM
    any workaround to this issue https://github.com/googlemaps/android-maps-compose/issues/295
  • a

    Arilson José de Oliveira Júnior

    03/25/2023, 4:48 PM
    Hey guys! I'm creating a typography and based on the previous XML style I have the
    textAllCaps
    property defined, but looking into the TextStyle we don't have this property. What would be the best approach in this case?
    r
    • 2
    • 26
  • s

    Shivam Dhuria

    03/25/2023, 7:49 PM
    hey guys. the new M3 Bottom sheet has this bug where the keyboard doesn’t show up if you have an Input text field inside the Bottom Sheet. any workarounds around this ? existing issue tracker link in 🧵
    s
    • 2
    • 3
  • z

    zt

    03/27/2023, 4:48 AM
    How do I fix the navigation bar being transparent when using a bottom sheet without a scaffold? I am also using accompanist system ui controller to make the system bars transparent
    c
    • 2
    • 1
  • s

    scana

    03/27/2023, 7:33 PM
    Hi - has anyone encountered this issue in their project? We're in the final stretch of fully migrating to Compose, but noticed that ComposeView is causing our components to get leaked: https://issuetracker.google.com/issues/240975572 It seems to be reported 6 months ago with few samples to reproduce, but there was no progress update ever since
Powered by Linen
Title
s

scana

03/27/2023, 7:33 PM
Hi - has anyone encountered this issue in their project? We're in the final stretch of fully migrating to Compose, but noticed that ComposeView is causing our components to get leaked: https://issuetracker.google.com/issues/240975572 It seems to be reported 6 months ago with few samples to reproduce, but there was no progress update ever since
View count: 1