• Davide Giuseppe Farella

    Davide Giuseppe Farella

    2 years ago
    Does compose provide some standalone way to deal with Strings and translations without xml resources?
    Davide Giuseppe Farella
    Afzal Najam
    10 replies
    Copy to Clipboard
  • e

    Esmaeel Nabil

    2 years ago
    what is the right way of making something like a page with multiple pages inside like viewPager and tab layouts , also how to handle the state of moving through them?
    e
    Afzal Najam
    3 replies
    Copy to Clipboard
  • m

    merono

    2 years ago
    🤔 Did recomposing on
    Configuration
    changes stop working recently? That’s what it seems like when I use the code snippet below and specify
    android:configChanges="uiMode"
    in my manifest.
    MaterialTheme(
        colors = if (isSystemInDarkTheme()) darkColors() else lightColors()
    ) {
        Box(
            Modifier.size(48.dp),
            backgroundColor = MaterialTheme.colors.onBackground
        )
    }
    The color of the
    Box
    doesn’t change when I toggle dark mode on my device (pixel 3), but I feel like it did on an older version of compose. The color does get updated correctly if I kill the app and re-open it. I’m seeing this behavior on
    alpha01
    and
    dev17
    , using API 29. I also tried similar things by using
    ConfigurationAmbient.current
    directly, and saw the same behavior. When debugging the app, I was able to see
    AndroidComposeView.onConfigurationChanged
    get called with the new
    Configuration
    though.
    m
    l
    6 replies
    Copy to Clipboard
  • v

    Vinay Gaba

    2 years ago
    Hey everyone! I am thrilled to introduce Airbnb’s latest open source project -🔦 Showkase 🔦 Showkase is an annotation processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements. It auto-generates a UI browser app for you More info in the thread 👇🏼
    v
    Pete Doyle
    10 replies
    Copy to Clipboard
  • m

    mattinger

    2 years ago
    Also struggling to figure out how to load an xml drawable. Apparantly the imageResource function isn’t appropriate for that.
    m
    Ricardo C.
    +2
    9 replies
    Copy to Clipboard
  • j

    JCollardBovy

    2 years ago
    Is it possible to use Jetpack Compose within multiplatform modules?
    j
    Javier
    5 replies
    Copy to Clipboard
  • Nemanja Mladenović

    Nemanja Mladenović

    2 years ago
    Beginner's question: how to interact with outside world from compose, lets say I have on click on a button and lets say that I want to start a service with that. Or the other way around, I get a message from service in a an activity holding composable, do I need to pass it to viewmodel and trigger recomposition via live data for example or do I have some other options?
    Nemanja Mladenović
    Zach Klippenstein (he/him) [MOD]
    +1
    4 replies
    Copy to Clipboard
  • j

    jaqxues

    2 years ago
    Having an issue with getting started with Compose. I only copy pasted these dependencies and configs in an existing project https://developer.android.com/jetpack/compose/setup
    j
    d
    +1
    14 replies
    Copy to Clipboard
  • Sergey Y.

    Sergey Y.

    2 years ago
    Playing around with Jetsnack sample. The project compiles and works fine. But the preview is broken because it is unable to handle the SystemUI padding modifier. Under the hood is NPE about InsetAmbient.current is NULL. I believe this is the case when the Preview can't provide the framework's Window(or any other components) and it breaks. Will Preview support such things in the future or we(developers) have to avoid of passing any Contexts, Windows, etc to composable functions that must work inside Preview?
    Sergey Y.
    Adam Powell
    5 replies
    Copy to Clipboard
  • Sergey Y.

    Sergey Y.

    2 years ago
    Jetchat sample. Is it a known issue? Huge performance tanking when selecting the text.
    Sergey Y.
    1 replies
    Copy to Clipboard