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
  • s

    Slackbot

    10/01/2021, 12:51 PM
    This message was deleted.
    a
    d
    2 replies · 3 participants
  • k

    kenkyee

    10/01/2021, 1:02 PM
    For Compose in an RxJava codebase, is there any reason to use LiveData? I know with regular databinding, LiveData works better in handling lifecycles, but was wondering if Compose like LiveData better than BehaviorSubjects? (we already know Compose likes coroutine stateflows better...just not ready to go full coroutines yet)...
    g
    a
    10 replies · 3 participants
  • p

    Piotr Prus

    10/01/2021, 2:17 PM
    I got ArrayIndexOutOfBoundsException in composition. The problem is that I do not know at which function this error occurs. I have a view with bottomSheetLayout and sometimes I got this ugly error that crash my app. More in 🧵
    m
    5 replies · 2 participants
  • m

    Marko Gajić

    10/01/2021, 2:38 PM
    Scaffold seems to introduce an unnecessary GPU overdraw layer (an empty screen turns blue just due to Scaffold). Anybody knows a reason for this and should there be a fix?
    ➕ 1
    m
    1 reply · 2 participants
  • a

    Anthony Martin

    10/01/2021, 3:32 PM
    Does
    AlertDialog
    work with Compose
    Preview
    ? I can't get it to work as it's saying "_The graphics preview in the layout editor may not be accurate - The preview does not support multiple windows._" Just trying to gain an understanding on what's doing wrong. Code:
    @Preview
    @Preview(uiMode = Configuration.UI_MODE_NIGHT_YES)
    @Composable
    private fun SimpleComposeUIPreview() {
        AppTheme {
            DialogUI(
                message = "This is an example dialog message...",
                onPopBackStack = {}
            )
        }
    }
    @Composable
    private fun DialogUI(
        title: String = stringResource(R.string.title),
        message: String,
        positiveBtn: String = stringResource(R.string.pos),
        onPopBackStack: () -> Unit
    ) {
        AlertDialog(
            onDismissRequest = onPopBackStack,
            title = {
                Text(text = title)
            },
            text = {
                Text(text = message)
            },
            confirmButton = {
                TextButton(
                    onClick = onPopBackStack,
                ) {
                    Text(positiveBtn)
                }
            },
        )
    }
    Using version 1.1.0-alpha04 for Compose
    🇳🇴 1
    🧵 3
    a
    2 replies · 2 participants
  • a

    alorma

    10/01/2021, 4:12 PM
    I've built compose settings library to build settings screens easily with compose: https://github.com/alorma/Compose-Settings Also, added support for preferences so state persists across sessions. Any feedback is welcome!
    👍 1
    a
    m
    4 replies · 3 participants
  • a

    Alex Vanyo

    10/01/2021, 5:37 PM
    📣 ⌚ If you are interested in Compose on Wear OS, or you’ve already been using it and have feedback, we’d love to hear it over on the new #compose-wear channel!
    ⏳ 1
    ⌚ 9
    z
    a
    3 replies · 3 participants
  • m

    Miguel Vargas

    10/01/2021, 5:38 PM
    Is something like this possible?
    val composables: List<@Composable () -> Unit>
    
    someComposableLoopingScope(composables) { composable ->
      composable.invoke()
    }
    z
    z
    2 replies · 3 participants
  • r

    Rafs

    10/01/2021, 7:23 PM
    In my
    BottomSheetScaffold
    I can actually see the BottomSheet flying in from the top of the page to the bottom when the app starts. This happens when I set the
    initialValue
    to
    BottomSheetValue.Expanded
    , is this actually intended behavior, or am I doing something horribly wrong? Screencap in thread....
    w
    j
    7 replies · 3 participants
  • c

    Colton Idle

    10/01/2021, 7:43 PM
    If I have a generic list of composables...
    List<@Composable () -> Unit>
    is it possible to write an if/when statement on what to do if
    mylist[0]
    is of type
    MySpecialButton
    ?
    z
    o
    +3
    13 replies · 6 participants
  • d

    Daniele Segato

    10/01/2021, 11:24 PM
    Hi, I've noticed
    Swipeable.animateTo
    throw a
    JobCancellationException
    when it's done instead of just terminating. (actually
    ModalBottomSheetState.show()
    and
    ModalBottomSheetState.hide()
    . Is this a bug or was a design decision? And in the latter case what motivated it? (more details in thread)
    i
    j
    10 replies · 3 participants
  • b

    brabo-hi

    10/02/2021, 6:49 AM
    Hi, i am trying to get a a screen with 3 sections, top, body, bottom, using contraint layout. Top and Bottom should be fix, and body a lazyColumn list
    🧵 1
    d
    j
    9 replies · 3 participants
  • a

    AmrJyniat

    10/02/2021, 7:58 AM
    How to check if an integer represent a drawable recourse or not in compose?
    z
    d
    5 replies · 3 participants
  • m

    Mohammad Sianaki

    10/02/2021, 1:28 PM
    Hi, How Can I animate a
    Text
    between two
    TextStyle
    ?
    m
    7 replies · 2 participants
  • z

    Zoltan Demant

    10/02/2021, 4:33 PM
    Im looking for some advice around
    VisualTransformation
    & formatting duration input! 🧵
    d
    13 replies · 2 participants
  • o

    Orhan Tozan

    10/03/2021, 11:03 AM
    Since Compose v1.0.3 supports kt 1.5.30, does it also mean that it supports kt 1.5.31?
    t
    j
    +2
    8 replies · 5 participants
  • o

    Odin

    10/03/2021, 5:22 PM
    Is there an alternative to Accessibility testing framework (ATF) in Jetpack Compose? Or is there a way to interop into using ATF in Compose? 😃
    a
    1 reply · 2 participants
  • a

    andrew

    10/03/2021, 5:48 PM
    enum class DarkTheme(private val _enabled: @Composable () -> Boolean) {
        NO({ false }),
        YES({ true }),
        AUTO({ isSystemInDarkTheme() });
    
        val enabled: Boolean
            @Composable
            get() = _enabled()
    }
    e
    4 replies · 2 participants
  • l

    Lilly

    10/03/2021, 11:14 PM
    I have problems to arrange/align a text in a
    Box
    with a vector image on various devices. I would like to scale the image to 
    FillWidth
      but this has the side effect that the height is different on various devices and so the bottom padding too. How can I arrange the text in the center of the gray area so it has the same position on all devices? What I also don't understand is why the smaller preview looks different on real device, although the given specs and the specs of device are the same (device = "spec:Normal;480;800;px;320dpi").
    j
    2 replies · 2 participants
  • g

    gabriel dean

    10/04/2021, 7:05 AM
    I have problem when using AndroidView in composable function. I have simple UI
    AndroidView(factory = {
        EditText(it)
    },modifier = Modifier.fillMaxWidth().wrapContentWidth())
    I clicked mutiple "tab" on keyboard and editext height got full screen. When I pressed delete button on keyboard multiple times, it got a bit delay to resize editext height.
    z
    5 replies · 2 participants
  • m

    Mini

    10/04/2021, 9:01 AM
    • Navigation Compose’s 
    NavHost
     now always uses Crossfades when navigating through destinations. (I07049, b/172112072) Is there no way to turn this off?? As in, I dont want any animation at all
    k
    i
    4 replies · 3 participants
  • m

    myanmarking

    10/04/2021, 9:22 AM
    What ways there is to to get the proper textColor given the background. I know contentColor works for Surface with color params. What are the other cases ?
    a
    o
    7 replies · 3 participants
  • a

    AmrJyniat

    10/04/2021, 11:09 AM
    I wonder what is the best way to make input validations to produce the same validation results on two sides(VM and Compose) and make it generic as much as possible.
    c
    1 reply · 2 participants
  • j

    jossiwolf

    10/04/2021, 12:26 PM
    Is there a ticket open to track progress on possible Window APIs?
    a
    2 replies · 2 participants
  • h

    Hachemi Hamadi

    10/04/2021, 1:26 PM
    Is there any library / way to create something like Event Bus in Jetpack Compose
    n
    a
    +1
    5 replies · 4 participants
  • a

    adjpd

    10/04/2021, 2:30 PM
    What's the main different, and use case, for
    Animatable
    and
    AnimationState
    . I see the view pager in accompanist is using
    AnimationState
    and the docs say the advantage
    Animatable
    has over
    AnimationState
    is mutable exclusiveness of animation. Does anyone have any other insights?
    c
    v
    +1
    4 replies · 4 participants
  • a

    Adrien de Sentenac

    10/04/2021, 3:51 PM
    How to make a lazy grid with 1 column with items that match the width of the biggest one?
    a
    m
    6 replies · 3 participants
  • n

    nglauber

    10/04/2021, 6:54 PM
    Maybe this is a dumb/weird question, but here it goes… I’m facing an issue on Accompanist Navigation Compose Material 0.19.0… I’m not able to use
    items
    in a
    LazyColumn
    declared inside of a
    bottomSheet
    route 😕 No errors, but the bottom sheet is not shown… If I wrap my
    LazyColumn
    with a
    Scaffold
    , it works… (but it has some space below the content)… Maybe it’s a measurement issue? 🤔
    i
    w
    +2
    26 replies · 5 participants
  • c

    Colton Idle

    10/04/2021, 7:02 PM
    Compose/navigation component/lifecycle question. My app has a home screen that is the main page. If your auth token is no longer valid. You are directed to the login screen. When you login, the login screen is popped and you see the home screen. But you see the "old" home screen. Is there anyway to manually clear my home VM and then when popping from the login screen the home screen reloads with the new auth token (which is potentially a new user altogether)
    a
    i
    +1
    16 replies · 4 participants
  • b

    bitkiller

    10/04/2021, 10:54 PM
    any hint on what to look to investigate the feedback delay (ripple) on button click?
    2 replies · 1 participant
Powered by Linen
Title
b

bitkiller

10/04/2021, 10:54 PM
any hint on what to look to investigate the feedback delay (ripple) on button click?
hmm click triggers navigation
also ite seems i have broken dagger
View count: 1