https://kotlinlang.org logo
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
  • s

    Stylianos Gakis

    12/23/2021, 4:28 PM
    How does one file a bug/typo report for documentation inside https://developer.android.com/jetpack/compose /blahblah ? I can’t find the correct component here
    c
    • 2
    • 1
  • n

    Nurseyit Tursunkulov

    12/23/2021, 4:35 PM
    how to make view like in newspaper, at the left side image at the right and below text?
    l
    • 2
    • 1
  • v

    Vinay Gaba

    12/23/2021, 6:42 PM
    Feature Request 👉🏼 Get the name of the composable in the Semantics or through some modifier. I think this should be straightforward to expose and would really help with building interesting tooling on top of Compose. In addition, it will also help with use cases like logging. I'm curious if there is already a non hacky way to do this? If not, I'm happy to file a ticket
    ➕ 6
    f
    • 2
    • 1
  • a

    AmrJyniat

    12/23/2021, 7:27 PM
    What is the best way to apply guidance flow when the user open the app for first time like this
    r
    a
    • 3
    • 2
  • n

    Nick

    12/23/2021, 10:16 PM
    I’m extending a custom view, and in that custom view’s
    draw
    method, i’d like to draw a
    Composable
    on that
    canvas
    . Is this possible?
    a
    • 2
    • 3
  • s

    Scott Kruse

    12/24/2021, 1:37 AM
    Is there a way to use launched effects in previews? Like previewing an animation or something? Maybe export a preview to gif 🤔
    c
    • 2
    • 4
  • a

    Adib Faramarzi

    12/24/2021, 12:19 PM
    Is
    .hoverable
    a desktop-only modifier? It doesn't seem to work (
    isHoveredState
    is always false even though a finger is pressing and hovering over the element)
    s
    a
    • 3
    • 5
  • l

    loloof64

    12/25/2021, 5:11 PM
    Hi ! I need a way to launch a simple check at each recomposition of my
    @Composable
    . So I'm using
    SideEffect
    , but it is not run at each screen update : so is there a better way ?
    @Composable
    fun MyComposable() {
       SideEffect { checkDraw()}
       MySubComposable()
    }
    a
    c
    • 3
    • 7
  • t

    Tim Malseed

    12/26/2021, 12:44 AM
    Could anyone help me understand why this hangs?
    composeTestRule.runOnUiThread {
        backPressedDispatcher.onBackPressed()
    }
    But this works fine:
    Espresso.pressBackUnconditionally()
    • 1
    • 1
  • r

    raghunandan

    12/26/2021, 11:37 AM
    Any idea why this happens https://github.com/android/compose-samples/issues/700. Trying compose for the first time
    c
    • 2
    • 1
  • z

    ziv kesten

    12/26/2021, 2:35 PM
    I would like to customize the Jetpack compose CheckBox with things like
    strokeWidth
    ,
    RadiusSize
    ,
    CheckboxSize
    etc'. However those properties are not public. I could just copy the entire CheckBox Code into my project and expose those values to be mutable but the would mean introducing alot of code in my project. is there a better way to customize these properties of
    CheckBox
    in Jetpack Compose?
    a
    k
    s
    • 4
    • 7
  • f

    Florian Walther (live streaming)

    12/26/2021, 3:11 PM
    If you open your activity from a notifications'
    PendingIntent
    , how would you make it navigate to a specific composable screen? Should I send an argument via the intent and let the activity navigate or is there a better way?
    z
    • 2
    • 11
  • l

    lesincs

    12/26/2021, 4:41 PM
    How to call a composable function in a
    LazyListScope
    ?
    a
    • 2
    • 5
  • j

    jeff

    12/26/2021, 7:53 PM
    Any way to use compose desktop as something like a Flow<Bitmap> (or something) instead of rendering to screen?
    s
    b
    a
    • 4
    • 7
  • r

    rsktash

    12/27/2021, 4:02 AM
    hi how can I detect if a composable is in a visible area of the device screen?
    r
    • 2
    • 1
  • m

    Matti MK

    12/27/2021, 9:51 AM
    I would like to animate the alpha of an element from 0f to 1f when a given screen becomes visible. In SwiftUI I implemented the visibility change with the
    onAppear
    modifier, however, looks like there isn’t a similar option with Compose. I looked over the
    Animation
    docs, but can’t seem to find a non-state based animation, which leads me to believe I need to have state that changes when the screen becomes visible?
    r
    a
    d
    • 4
    • 7
  • s

    Shakil Karim

    12/27/2021, 10:47 AM
    What is the correct way to handle Events which are coming from ViewModel, i was trying to follow Official guideline. Launch Effect (ViewState) { If ((ViewState.someBoolean) { Somefunc() } } If ((ViewState.someBoolean) { Launch Effect (true) { Somefunc() } }
    c
    a
    +3
    • 6
    • 18
  • e

    Eduard Boloș

    12/27/2021, 12:49 PM
    Hello! This might be a stupid question, but I started playing with Compose and I opted for using Material 3, and I am not finding a ProgressBar-like component. Am I supposed to use components from the
    androidx.compose.material
    package when they are not in the
    androidx.compose.material3
    one, and then manually pass the colors from the
    material3.MaterialTheme
    ? Or is there a more straightforward way which I am missing?
    d
    c
    • 3
    • 2
  • m

    Mikael Alfredsson

    12/27/2021, 7:04 PM
    When I’m trying to use a custom layout on a composable that contains content, i always get an exception. This is just an example, but it shows my issue. I guess im doing something completely wrong here.
    @Composable
    fun Test(
    	content: @Composable () -> Unit
    ) {
    	Box(
    		Modifier.layout { measurable, constraints ->
    			layout(constraints.minWidth, constraints.minHeight){
    				val placeable = measurable.measure(constraints)
    				placeable.place(0,0)
    			}
    		}
    	) {
    		content()
    	}
    }
    
    @Preview
    @Composable
    fun TestPreview() {
    	Test(){
    		Text(text = "test")
    	}
    }
    c
    • 2
    • 9
  • j

    Justin Yue

    12/27/2021, 10:48 PM
    Hello, I've placed a MapView within a LazyColumn, and the scrolling is interfering with being able to move up or down on the mapview. I've tried disabling scrolling, but I am unable to interact with the screen after. Code below
    • 1
    • 4
  • c

    Colton Idle

    12/28/2021, 2:25 AM
    In the new UI Events section of the Android arch docs (https://developer.android.com/jetpack/guide/ui-layer/events#compose_1) it uses rememberUpdatedState. Why is that needed? It seems like the example works fine without it.
    val currentOnUserLogIn by rememberUpdatedState(onUserLogIn)
    f
    z
    • 3
    • 5
  • m

    miqbaldc

    12/28/2021, 6:16 AM
    Does it possible to show the
    BottomSheetScaffold
    this ways? code in 🧵
    • 1
    • 1
  • l

    Liangjun Sha

    12/28/2021, 6:31 AM
    Hi, I have updated my project to Kotlin
    1.6.10
    , Compose
    1.1.0-rc01
    and compose compiler to
    1.1.0-rc02
    , but I got the exception below, how can I fix it.😭 HELP!!!
    🆙 1
    t
    • 2
    • 4
  • a

    Ankit Shah

    12/28/2021, 12:56 PM
    Does anyone have Idea, how I can achieve such design in jetpack compose?
    m
    s
    +3
    • 6
    • 11
  • z

    ziv kesten

    12/28/2021, 1:57 PM
    Does anyone have an easy implementation of a debounce button in compose?
    s
    w
    • 3
    • 3
  • f

    Florian Walther (live streaming)

    12/28/2021, 2:37 PM
    My deep links are not navigating to the destination when I use
    launchMode=singletTop
    . I implemented deep links following the documentation. Do deep links not handle
    onNewIntent
    ?
    i
    • 2
    • 9
  • m

    Mikael Alfredsson

    12/28/2021, 3:28 PM
    is it possible to create a Slider component that can update itself while the user interacts with it, but also being updated from
    value
    when the user isn’t touching it?
    s
    • 2
    • 19
  • r

    rsktash

    12/28/2021, 3:50 PM
    Anybody tried Jetpack compose in production with Admob Ad Mediation native ads? I’ve published a new app. In the chart I see zero clicks
    • 1
    • 1
  • g

    georgiy.shur

    12/28/2021, 4:05 PM
    Hi, is there an easy way to check if the
    LazyColumn
    is scrollable? Means if its content is longer than the container.
    j
    a
    • 3
    • 3
  • b

    Bradleycorn

    12/28/2021, 5:27 PM
    Does the animation inspector work with
    InfiniteTransition
    , or only the “regular”
    Transition
    ?
    d
    • 2
    • 1
Powered by Linen
Title
b

Bradleycorn

12/28/2021, 5:27 PM
Does the animation inspector work with
InfiniteTransition
, or only the “regular”
Transition
?
d

Doris Liu

01/04/2022, 6:51 PM
Not yet. It is on the roadmap for animation tooling, so stay tuned. 🙂
👍 1
View count: 1