• Deepak Gahlot

    Deepak Gahlot

    1 year ago
    Hello, I'm using ActivityResults
    val registerTakeFile = registerForActivityResult(
        ActivityResultContracts.OpenDocument()
    and after updating to implementation "androidx.activity:activity-compose:1.3.0-alpha04" i'm getting an error
    Can only use lower 16 bits for requestCode
    Deepak Gahlot
    jossiwolf
    8 replies
    Copy to Clipboard
  • Samir Basnet

    Samir Basnet

    1 year ago
    Any idea how to add that vertical dash before text without extra composable?
    Samir Basnet
    rnett
    2 replies
    Copy to Clipboard
  • Samir Basnet

    Samir Basnet

    1 year ago
    Currently to shift focus to next textfield we have to write the logic manually, i was trying to create my own styled CustomStyledTextField composable to reuse it as form screen ,contains a lot of them but due to this focus logic being manual i find it hard to make resusable textfield . Is there an easy way or am i missing something?
    Samir Basnet
    1 replies
    Copy to Clipboard
  • u

    Utkarsh Tiwari

    1 year ago
    I created a custom Popup to appear around the button that triggers it’s visibility. However, for the buttons at the buttom of the activity, the popup overlays the Android Navigation Bar. Also the elevation keeps increasing (apparent from the increasing shadow range) on moving down the screen. Does anyone know how to avoid it from covering the Navigation bar at the bottom and fix the elevation issue?
    u
    2 replies
    Copy to Clipboard
  • d

    Daniele B

    1 year ago
    I having doubts about the Compose Navigation and Deep Linking. This is a simple master/detail app navigation. As you can see, I am loading the detail data, when clicking on a master list item. It works. But this wouldn’t work when deep linking to the detail screen, as it would show the DetailView without having loaded the data. Ideally, I would like to associate somehow the
    model.loadDetailData(it)
    call to the
    composable("detail/{item}")
    , but I can’t find a Compose API to do that. If I include the call inside the
    composable
    block, above
    DetailView
    , such call gets executed at each recomposition, creating a never-ending loop.
    @Composable
    fun Navigation(model: KMPViewModel) {
      val appState by model.stateFlow.collectAsState()
      val navController = rememberNavController()
    
      NavHost(navController, startDestination = "master") {
        composable("master") {
          MasterView(masterState = appState.masterState,
            onListItemClick = {
              navController.navigate("detail/$it")
              model.loadDetailData(it)
            }
          )
        }
        composable("detail/{item}") {
          DetailView(detailState = appState.detailState)
        }
      }
    
    }
    what is the right way to make it work with deep linking?
    d
    i
    +1
    17 replies
    Copy to Clipboard
  • j

    julioromano

    1 year ago
    Weird scrolling issue when using
    AndroidView
    in
    sheetContent
    of a
    BottomSheetScaffold
    Please see the example code and video showing the bug in the thread.
    j
    Halil Ozercan
    +2
    7 replies
    Copy to Clipboard
  • Rick Regan

    Rick Regan

    1 year ago
    I have a
    Text
    that gets recomposed even though its value is not based on mutable state. In particular, this happens when I include it in another composable that has a
    Slider
    with its own mutable state, and it doesn't happen when I put it in a separate composable (see thread for code). I know we're not supposed to depend on when recomposition happens or doesn't happen; I'm just trying to understand how Compose works (and avoid bugs that are hidden until code is refactored 😃 )
    Rick Regan
    Zach Klippenstein (he/him) [MOD]
    14 replies
    Copy to Clipboard
  • escodro

    escodro

    1 year ago
    Hello, everyone! 😊 Im having some questions about my implementation. Could you help me please? Basically I’m trying to create a new
    State
    wrapping the default
    ModalBottomSheetState
    and one
    State
    I created to handle which content should be shown for the user. The implementation is on the comments and I need help to understand if I’m correctly saving the
    State
    in order to use
    rememberSaveable
    with it. (It is working as expected, but I’m a little afraid of my “inner remember” inside the
    Saver
    😬) Thanks a lot in advance! ❤️
    escodro
    1 replies
    Copy to Clipboard
  • d

    Denis

    1 year ago
    Is it a known problem with theming in
    beta02
    ? My app can switch from light to dark, but not back. And I can't understand what happened with it. It worked before beta02. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1615651080120600
    d
    l
    4 replies
    Copy to Clipboard
  • Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    Zach Klippenstein (he/him) [MOD]
    Shakil Karim
    6 replies
    Copy to Clipboard