Insets: Compose edition

Поділитися
Вставка

КОМЕНТАРІ • 23

  • @Maarttttt
    @Maarttttt Рік тому +8

    > Don’t be afraid to go edge-to-edge!
    I'm still afraid, because coloring the status bar is so awkward.

  • @phantom1429
    @phantom1429 2 роки тому +5

    Just the right time

  • @theren8311
    @theren8311 Рік тому +13

    I just don't know why this has to be so difficult, in 2023..
    If memory serves, going edge to edge in SwiftUI is a single line, and I can go focus on what I actually care about.
    When I throw Scaffold in the mix in ComposeUI, it's like I can't get a consistent behaviour if my child content changes (and yea I've taken note of the docs for contentPadding).

  • @carlozgrafic1276
    @carlozgrafic1276 5 місяців тому

    Gracias! Ya me hacia falta para controlar el teclado.

  • @Dmitriy_Aralov
    @Dmitriy_Aralov 2 роки тому +2

    Hi Alex and thanks Google

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +1

      We're so glad you enjoyed this tutorial 😎
      If you're interested in additional resources, feel free to scope out
      these helpful links below 🔍 :
      WindowInsets and IME Animations → goo.gle/compose-insets
      Insets for Jetpack Compose → goo.gle/3TX01EJ

  • @renzcarlosalanga6077
    @renzcarlosalanga6077 2 роки тому

    So We dont need to use the accompanist insets anymore very useful

  • @clementjoymasinamela4244
    @clementjoymasinamela4244 2 роки тому +4

    Very informative, thanks. I wouldn't mind a part 2.

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +2

      We're glad that you have enjoyed the tutorial, Clement. Thanks for the feedback as well as 😁

  • @JuanMendezEscobar
    @JuanMendezEscobar 5 місяців тому

    It gets tricky when the hosting activity embeds compose, and has a native toolbar, specially when dealing with Compose's BottomSheet.

  • @GG9K71
    @GG9K71 2 роки тому +1

    Nice!

  • @Zhuinden
    @Zhuinden 2 роки тому +5

    How do I show a TextField in a LazyColumn with adjustResize? There is an open issue since 2 years ago

  • @hungluong1321
    @hungluong1321 4 місяці тому

    I am a programmer, what should I do to become an android developer.

  • @alskaa1
    @alskaa1 Рік тому +1

    I still can not using imePadding() modifier

  • @KaziSamimIkbal
    @KaziSamimIkbal 2 роки тому

    I 💟 Android 😘❤️☺️

  • @John-ub3su
    @John-ub3su 2 роки тому +1

    03:59 wait, camera is lower than status bar, does such a phone exist? And what's the point of safeDrawing?

    • @alexvanyo1092
      @alexvanyo1092 Рік тому

      Good catch, that is a mistake! For all devices I'm aware of, the status bar includes the space for the camera when oriented in portrait, so if you pad to avoid the status bar, you'll also avoid the camera.
      The point of safeDrawing is to have a type of insets that combines the other types in a useful way.

  • @kirwakelvinkering3122
    @kirwakelvinkering3122 Рік тому

    It doesnt make sense for me at all !!! I think Manuel ahould go thro this once more .

  • @xantrk
    @xantrk Рік тому

    Thanks a lot for the video! I realized reverseLayout=true is the key to get lazycolumn scrolling with keyboard here. Is there simple way to achieve the same without reversing the list items?

  • @patryk11258
    @patryk11258 2 роки тому +3

    @Android Developers Given the code at 4:50, how to properly request focus to TextField after keyboard scrolls in and later clear it when keyboard is gone? I tried using FocusRequester in tandem with WindowInsets.isVisible, however it fails due to "attempting to request focus during composition". Without this behaviour, I don't see any benefits to the user, if one still has to request focus to TextField by tapping. I've seen hacks involving coroutineContext.job.invokeOnCompletion, but I believe there must be a cleaner way. Apart from that, great API and video.