• myanmarking

    myanmarking

    1 year ago
    how can i align the text vertically ?
    myanmarking
    Albert Chang
    3 replies
    Copy to Clipboard
  • g

    georgiy.shur

    1 year ago
    I’m having problems using Hilt injection into custom Compose view. I’m using this as an entry point.
    @AndroidEntryPoint
    class CustomComposeView(context: Context) 
        : AbstractComposeView(context, null, 0)
    But I’m getting an error:
    The base class, 'androidx.compose.ui.platform.AbstractComposeView', of the @AndroidEntryPoint, 'com.example.CustomComposeView', contains a constructor with default parameters. This is currently not supported by the Gradle plugin. Either specify the base class as described at <https://dagger.dev/hilt/gradle-setup#why-use-the-plugin> or remove the default value declaration.
    I cannot modify the base class because I don’t own it and I don’t understand where should I specify the base class. Any ideas?
    g
    1 replies
    Copy to Clipboard
  • myanmarking

    myanmarking

    1 year ago
    is there any example how to go about collapsing header + sticky toolbar ? I manager to implement parallax looking at some samples, but i cannot quite grasp how to make the toolbar not scroll past the top screen
    myanmarking
    1 replies
    Copy to Clipboard
  • Justin Yue

    Justin Yue

    1 year ago
    I'm currently working on conditional navigation where if the user is not logged in, the app navigates to the authentication screen. Currently, I place this conditional navigation logic in a
    launchedEffect
    of my main screen, but the app then momentarily shows the main screen before navigating to the auth screen if no user is logged in. I would like to remove the delay in navigating to the auth screen. I'm not entirely sure if using
    launchedEffect
    in this case is best practice too.
    Justin Yue
    w
    3 replies
    Copy to Clipboard
  • w

    Waqas Tahir

    1 year ago
    I want to create a text field with line numbers , is there any way I could do this , I don't want to use multiple text fields
    w
    1 replies
    Copy to Clipboard
  • myanmarking

    myanmarking

    1 year ago
    is there any way of knowing the total scroll from LazyListState ?
    myanmarking
    Adam Powell
    7 replies
    Copy to Clipboard
  • brabo-hi

    brabo-hi

    1 year ago
    hi all, when navigating from A to B, what is the best way to return data back from B to A when B finishes?
    brabo-hi
    i
    2 replies
    Copy to Clipboard
  • Vinícius Santos

    Vinícius Santos

    1 year ago
    Hey there I'm working on a project with feature modules and compose navigation, I've been searching for approaches using compose navigation but all of them seems to centralize navigation in a single spot and I was wondering, is there any way I can have multiple independent graphs just like we already have with jetpack navigation nested graphs?
    Vinícius Santos
    i
    2 replies
    Copy to Clipboard
  • b

    Bradleycorn

    1 year ago
    Has anyone built a
    TextField
    composable with masking/formatting of input (for example to format a phone number or date)?
    b
    n
    2 replies
    Copy to Clipboard
  • rajesh

    rajesh

    1 year ago
    I've Boolean variable in child composable which I want to reassign from parent composable. How do I do that? Tried state hoisting but that didn't worked.
    rajesh
    Zach Klippenstein (he/him) [MOD]
    2 replies
    Copy to Clipboard