• Daniel Weidensdörfer

    Daniel Weidensdörfer

    1 year ago
    Are there any plans for an autosized text in compose?
    Daniel Weidensdörfer
    e
    2 replies
    Copy to Clipboard
  • Daniele Segato

    Daniele Segato

    1 year ago
    When using
    AnimatedVisibility
    how can I make the container scroll to show the item being expanded? (say I'm at the end of the scroll and there's an expandable item
    Daniele Segato
    Colton Idle
    +2
    8 replies
    Copy to Clipboard
  • m

    MaxUt

    1 year ago
    What is the best way to force children composable to be placed in their parents ? I'm struggling with text rotation. I decided to rotate a row containing text instead of rotating each individual texts. I managed to keep proportion by switching width and height with a customer modifier, however I can't figure out how to force children element to stay at the position of their parent.
    m
    Zach Klippenstein (he/him) [MOD]
    6 replies
    Copy to Clipboard
  • JulianK

    JulianK

    1 year ago
    I'm experiencing memory leaks with compose 1.0 and navigation-compose 2.4.0-alpha05, which introduces crossfade. After a few navigations triggered by my bottom bar, i see multiple instances of my screen functions on the heap, one instance per navigation. They don't get garbage collected. No Leaks with navigation-compose alpha04. Anyone else experiencing this issue?
    JulianK
    1 replies
    Copy to Clipboard
  • Anastasia Rozovskaya

    Anastasia Rozovskaya

    1 year ago
    Is it possible to give an
    OutlinedTextField
    elevation with shadow? I tried to apply
    Modifier.shadow(elevation = 8.dp, shape = RoundedCornerShape(8.dp))
    directly to OutlinedTextField, but the result was horrible. Should I use
    BasicTextField
    instead? I see some
    decorationBox
    parameter in there, which might help.
    Anastasia Rozovskaya
    k
    11 replies
    Copy to Clipboard
  • t

    Tin Tran

    1 year ago
    I have a question about
    HorizontalPager
    . If each page have difference height then the
    HorizontalPager
    will match the size of the largest page is that correct?
    t
    3 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    1 year ago
    For some reason the four images I put in a row do not fill the whole available width. Does anyone know why this is happening?
    Row(Modifier.fillMaxSize().background(Color.Yellow)) {
        val pics = listOf(R.drawable.professor, R.drawable.woman,
        R.drawable.daughter, R.drawable.son)
        for (pic in pics)
            Image(painterResource(id = pic), null, Modifier.fillMaxWidth(0.25f).align(Alignment.Bottom))
    }
    Mehdi Haghgoo
    2 replies
    Copy to Clipboard
  • m

    muthuraj

    1 year ago
    Hi, does anyone know how to save/retain keyboard focus and cursor position for a
    TextField
    ? I'm having a list screen with a search option and showing either list or error screen below the search box based on search results. It roughly looks like this for list state
    Column{
    SearchBox()
    List()
    }
    and like this for error state
    Column{
    SearchBox()
    Text("No results")
    }
    SearchBox
    has
    BasicTextField
    and other decorations around it. Now when I start typing in the search box, the keyboard state and cursor position is retained for recompositions of the list screen update, but when the error state is shown, the keyboard is being closed and the
    TextField
    loses focus. The same happens when transitioning from error state to list screen.
    m
    Zach Klippenstein (he/him) [MOD]
    6 replies
    Copy to Clipboard
  • e

    emmanuelvinas

    1 year ago
    Hi, I’m experiencing something weird with the compose compiler.
    import androidx.compose.runtime.Composable
    import androidx.compose.ui.graphics.BlendMode
    
    @Composable
    fun TestBlendMode(
        blendMode: BlendMode = BlendMode.Multiply
    ) {
        // Comment this line and compilation should work as expected
        val mode = blendMode
    }
    If i use a blendmode inside a composable, i get a crash. Anyone getting the same error with the 1.0.0 version?
    : java.lang.AssertionError: Assertion failed
            at org.jetbrains.kotlin.ir.util.AdditionalIrUtilsKt.getPropertyGetter(AdditionalIrUtils.kt:236)
            at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.unboxValueIfInline(AbstractComposeLowering.kt:311)
    e
    1 replies
    Copy to Clipboard
  • m

    Mohamed Ibrahim

    1 year ago
    I have this problem where typography is not reflected in Android studio preview? anyone facing same problem
    m
    a
    +1
    3 replies
    Copy to Clipboard