Android Bottom sheet dialog (Model/Persistent)

Опубликовано: 29 Январь 2023
на канале: My Learning Point
83
0

In Android before Material Themes, if we want to pop up a dialog box at the bottom of the page, the general method is to inherit Dialog, and then set the layout, position, height and width to the dialog. If we want to add a bottom-to-top animation, we need to create a new animation file, after introduced Material Design in Android, it is easy way to implement this feature by few of the classes/widgets that officially provided, BottomSheetDialogFragment, BottomSheetDialog and bottomSheetBehavior. By using these classes we can achieve above effects easily with few lines of code.

https://rrtutors.com/programs/android...
https://rrtutors.com/programs/android...
https://rrtutors.com/programs/android...