Android Custom Dialogs in Jetpack Compose - Android Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 16

  • @francismwangi9752
    @francismwangi9752 Год назад +1

    Thanks mahn. I'm happy I was able to implement that in my app

  • @akshaymanoj2967
    @akshaymanoj2967 Год назад +2

    Thank you for this man saved me !!

  • @vixiloc
    @vixiloc Год назад +1

    Thank you this is very very good video

  • @Akshaykumar-xr9yj
    @Akshaykumar-xr9yj 2 года назад +1

    Thank u brother

  • @ЮрийАфонский-х2ф

    if in dialog i have textfield. how can i pass the text entered by user into viewmodel.someMethod(text)?

    • @kapps7407
      @kapps7407  Год назад

      Use a lamb function. You invoke it inside the dialog and process it inside the screen where you have reference to your ViewModel.

  • @LuisFernandez-rz9ty
    @LuisFernandez-rz9ty Год назад

    Excelente información

  • @АльфредАхметгалеев
    @АльфредАхметгалеев 10 месяцев назад

    Hello! Why did you close the project?

  • @yaroslavlutsenko4134
    @yaroslavlutsenko4134 Год назад

    Thank you! Now I know usePlatformDefaultWidth due to this video.
    One question please: is it possible to change overlay? I want to make it red with alpha 0.8F

    • @kapps7407
      @kapps7407  Год назад

      Do you mean the dark background around the dialog ?

    • @yaroslavlutsenko4134
      @yaroslavlutsenko4134 Год назад

      @@kapps7407 Yes)

    • @kapps7407
      @kapps7407  Год назад

      As far as I know there is no native solution for that. You need to provide a work around for example make the Dialog or a screencomposable fill max size of your screen with desired 0.8 Alpha background and then only use a card in the center for your actual content

    • @yaroslavlutsenko4134
      @yaroslavlutsenko4134 Год назад +1

      @@kapps7407 it's a good idea! Thank you, will try this solution

  • @jopadjr
    @jopadjr Год назад

    43rd...Thanks

  • @j2shoes288
    @j2shoes288 Год назад

    android compose development is a joke, AlertDialog, renders totally different on different devices? to the point that it would be flagged as a bug!

  • @alirezab4253
    @alirezab4253 6 месяцев назад

    thanx a lot bro , that help too much 🤍