Android Custom Dialogs in Jetpack Compose - Android Studio Tutorial

Поділитися
Вставка
  • Опубліковано 7 лис 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

  • @АльфредАхметгалеев
    @АльфредАхметгалеев 9 місяців тому

    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

  • @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

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

    43rd...Thanks

  • @j2shoes288
    @j2shoes288 11 місяців тому

    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 5 місяців тому

    thanx a lot bro , that help too much 🤍