• Ash

    Ash

    1 year ago
    think missing something. AS can't render Compose preview with CameraX Preview.🧵
    Ash
    adjpd
    +2
    12 replies
    Copy to Clipboard
  • OG

    OG

    1 year ago
    Hello everyone 👋 I think I've spent ~30 hours now over 3 days trying to figure out what is going on with this insanely weird compose issue. I was hoping I could share the nightmare I've found myself in and see if anyone would mind playing rubber duck here to help me get more ideas on how to tackle the problem. At a high level, here's what's going on. I work in 3 different android projects. Project 1 and Project 2 are working properly with compose and I'm migrating more and more of UI to compose and everything works flawlessly. I just added the exact same compose dependencies to project 3 and found that what I am seeing in Compose Preview is broken when I run the code in an emulator or real device. I stashed all my compose work and just made a simple screen that has a Column with verticalScroll that just loops 40 times and renders a Text component. When I deploy this code, the column DOES NOT scroll. I take this EXACT same code and copy it to Project 1 and 2, deploy, and I'm able to scroll the Column. Other things don't work as well such as clipping a Custom Shape etc but I'm positive all the issues are related. So I am just focusing on getting the simple Column with vertical scrolling to work. What. The. $@#!. Right? I'll post some of my notes/findings/additional info in thread for anyone curious or who may have insight. I sincerely apologize for the long message in this channel and really have tried avoiding bothering anyone with this as I'm trying to figure it out but I really am losing my mind at this point...
    OG
    d
    +3
    28 replies
    Copy to Clipboard
  • j

    james

    1 year ago
    Should it be possible to use the interop layer of compose to use a ComposeView in ReactNative?
    j
    Zach Klippenstein (he/him) [MOD]
    3 replies
    Copy to Clipboard
  • j

    Joey

    1 year ago
    In LazyColumn, is there a simple way to scroll to an item based on the key? Or do I have to keep a list of indices somewhere and use that to scroll to specific items?
    j
    Zach Klippenstein (he/him) [MOD]
    2 replies
    Copy to Clipboard
  • Luka

    Luka

    1 year ago
    How to create button without rounded corners (can it be done without specifying border with 0.dp width)?
    Luka
    p
    2 replies
    Copy to Clipboard
  • Cicero

    Cicero

    1 year ago
    Something really unusual happened to me and I don't know where to start looking
    Cicero
    6 replies
    Copy to Clipboard
  • rajesh

    rajesh

    1 year ago
    My drawable resources are not displaying in original color in composable view. Color change to black (maybe due to app theme). How do I retain original view for drawable? Anything related to composition local?
    rajesh
    sindrenm
    +2
    6 replies
    Copy to Clipboard
  • orangy

    orangy

    1 year ago
    I don’t quite understand relations between State<T> and Transition<T> and how to make a “composable” animations. Let’s say I have this simple data class:
    data class ShapeStroke(val width: Dp, val color: Color)
    I want to write a function
    fun <S> Transition<S>.animateShapeStroke() : State<ShapeStroke>
    so that it would just add child animations for width and color and return
    State<ShapeStroke>
    instance. What’s proper way to do this?
    orangy
    2 replies
    Copy to Clipboard
  • Alexa_Gal

    Alexa_Gal

    1 year ago
    Hi guys 👩‍💻 looking for some testing advices i want to create my first
    androidTest
    and im having some problems trying to mock the ViewController of my view, maybe im doing something working but i would like to test only the view without the view controller (i already have the Unit test for my view controller) how would you do it using hilt and compose-navigation (
    HiltAndroidTest
    )
    Alexa_Gal
    Peter Mandeljc
    10 replies
    Copy to Clipboard
  • i

    Ink

    1 year ago
    Hi guys Why this text is not in the center? When I set
    defaultMinSize
    to e.g. 40.dp it looks good but I don't want that big Code in thread:
    i
    Chris Johnson
    +3
    16 replies
    Copy to Clipboard