• Colton Idle

    Colton Idle

    1 year ago
    My first screen that I did in compose! The entire fragment is only ~70 lines long, but I don't think it's idiomatic. Can anyway take some time to critique? https://gist.github.com/ColtonIdle/85db918c763076cbb147b722e6807007
    Colton Idle
    Adam Powell
    11 replies
    Copy to Clipboard
  • l

    Lauren Yew

    1 year ago
    Question about
    mutableState
    and
    State
    : in the "Using State in Jetpack Compose" codelab, it says:
    State<T> is intended to be used by Compose.
    
    Application state that's used outside of Compose should not use State<T> to hold the state.
    Why is this? Is
    State
    being discarded along with the compose-recompose lifecycle or something? Does anyone know the lifecycle of
    State
    ?
    l
    jim
    +3
    12 replies
    Copy to Clipboard
  • l

    Lauren Yew

    1 year ago
    Having issues with Compose
    TextField
    sometimes opening keyboard properly when I click on the textfield, and sometimes not. Is anyone else seeing these issues? Working thru "Using State in Jetpack Compose" codelab
    l
    Siyamed
    2 replies
    Copy to Clipboard
  • Mehmet Peker

    Mehmet Peker

    1 year ago
    Hello everyone,im trying detect swipe direction in compose.Im using draggable modifier for this.But draggable allows only one direction to detect(Vertical or Horizontal).I want to detect swipe for all direction(left,right,up,down).May anyone help me how can i do this?Thanks.
    Mehmet Peker
    Tash
    3 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    If one of the items in a Row is using
    fillMaxHeight
    and one of the item's height is conditionally dependent upon some state, don't we have any other option than writing a custom layout to get wrapContent behaviour? Currently
    fillMaxHeight
    makes the row fill the entire height but what I meant was the maximum height of an item in given row
    k
    Yann Badoual
    3 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    How can we add a custom scroller to
    LazyColumn
    ?
    k
    1 replies
    Copy to Clipboard
  • rsktash

    rsktash

    1 year ago
    Is there any rule for posting? Big chunks of codes and error logs are irritating. We could use gist or something else
    rsktash
    jim
    2 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    Is it possible to use compose for Custom Snackbar Layout which to be used with lagacy xml based Fragment?
    k
    1 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    When to use
    ScrollableColumn
    vs
    LazyColumn
    ? Is it equivalent to RecyclerView vs ListView?
    k
    Sinan Gunes
    +4
    7 replies
    Copy to Clipboard
  • Vitor Prado

    Vitor Prado

    1 year ago
    hey guys, can you help me with this simple question: How can I check for “preview” state inside composable? Can I know when the view is rendering in preview environment?
    Vitor Prado
    k
    +2
    9 replies
    Copy to Clipboard