• c

    codeslubber

    2 years ago
    Why do the release notes tell you
    wraps
    is deprecated for combining Modifiers but then the docs say unary is temporary?
    c
    jim
    2 replies
    Copy to Clipboard
  • Klaas Kabini

    Klaas Kabini

    2 years ago
    I have updated my project from 0.1.0-dev03 to 0.1.0-dev04 including updating to new API changes that comes with 0.1.0-dev04 and now I am getting the following error. It was working fine on 0.1.0-dev03 prior to this update. Does anyone has an idea of what might be thee root cause of this error?
    java.lang.IllegalStateException: Backend Internal error: Exception during code generation
    Element is unknownThe root cause java.util.NoSuchElementException was thrown at: androidx.compose.plugins.kotlin.compiler.lower.ComposableCallTransformer.irComposableExpr(ComposableCallTransformer.kt:1362)
    	at org.jetbrains.kotlin.codegen.CompilationErrorHandler.lambda$static$0(CompilationErrorHandler.java:35)
    	at org.jetbrains.kotlin.backend.jvm.JvmBackendFacade.doGenerateFilesInternal$backend_jvm(JvmBackendFacade.kt:93)
    .............
    Caused by: java.util.NoSuchElementException: Collection contains no element matching the predicate.
    	at androidx.compose.plugins.kotlin.compiler.lower.ComposableCallTransformer.irComposableExpr(ComposableCallTransformer.kt:1362)
    	at androidx.compose.plugins.kotlin.compiler.lower.ComposableCallTransformer.visitBlock(ComposableCallTransformer.kt:252)
    ...................
    Klaas Kabini
    j
    3 replies
    Copy to Clipboard
  • j

    Joseph Cheng

    2 years ago
    Hi, I try to implement color selector on the button background. Any API I can use so far? The first thought I can use is
    PressIndicatorGestureDetector
    , like
    Ripple
    to customize one.
    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_pressed="true"
              android:color="#ffff0000"/> <!-- pressed -->
        <item android:state_focused="true"
              android:color="#ff0000ff"/> <!-- focused -->
        <item android:color="#ff000000"/> <!-- default -->
    </selector>
    j
    Ian Warwick
    3 replies
    Copy to Clipboard
  • m

    molikto

    2 years ago
    Hello, I am reading the source code of compose, can I ask a question, what's the purpose of "androidx.compose.frames.Frame"?
    m
    Chuck Jazdzewski [G]
    +1
    7 replies
    Copy to Clipboard
  • camkadev

    camkadev

    2 years ago
    i try to run sample with Constraints but without luck because Tag modifier hidden somewhere, can't import them, any idea?
    camkadev
    Mihai Popa
    +3
    7 replies
    Copy to Clipboard
  • amar_1995

    amar_1995

    2 years ago
    Purpose and difference of Key and Pivotal ?
    amar_1995
    Manuel Wrage
    12 replies
    Copy to Clipboard
  • h

    Hackdiod

    2 years ago
    Hello! Do you now, how use Center item for few elements. I have Row>Column2>Text4, but Row>Column2>Center>Column>Text4 it works incorrectly. I think use Center to each text is the wrong approach.
    h
    Mihai Popa
    3 replies
    Copy to Clipboard
  • amar_1995

    amar_1995

    2 years ago
    I updated my project from dev03 to dev04 and get this error.
    java.lang.ClassCastException: androidx.compose.GroupStart cannot be cast to androidx.ui.foundation.ScrollerPosition
    It was working fine in dev03. Can anyone help me to resolve this error and why this is occuring ??
    amar_1995
    Ian Warwick
    +2
    24 replies
    Copy to Clipboard
  • carbaj0

    carbaj0

    2 years ago
    is there any plan for this component? https://material.io/components/bottom-navigation/
    carbaj0
    l
    2 replies
    Copy to Clipboard