Bottom Sheet Dialog Android Studio Kotlin Example Tutorial - ViewModel

Bottom Sheet Dialog Android Studio Kotlin Example Tutorial - ViewModel

Code With Cal

1 год назад

20,286 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Dinico Nights
Dinico Nights - 03.11.2023 03:43

Hey, how could I use ?attr/colorPrimary instead of purple_500?

And how can I implement the delete function

Ответить
AMO
AMO - 29.06.2023 19:45

i keep getting the same error even when onViewCreated fun is used, what should i do?

Ответить
Karen Wilke
Karen Wilke - 21.04.2023 14:58

Thank you so much for your work! How would this work if I didn't access the bottom sheet dialogue from main activity, but from another fragment?

Ответить
JEET SHAH
JEET SHAH - 16.03.2023 13:45

SUPERB EXPLANATION

Ответить
Pawan Acharya
Pawan Acharya - 06.01.2023 09:02

So you are creating view model in Activity and BottomSheetFragment using viewmodel providers method. Doesn't it creates new instance at both place?
If yes, how are we able to pass data since both place might have different instance of view model
If no, why?
Please correct me where I am wrong

Ответить
Shivangee Rajput
Shivangee Rajput - 31.12.2022 20:44

Man you are just amazing. After going through lots of videos I found yours and it's really worth it ✨

Ответить
Manu Rodriguez
Manu Rodriguez - 21.12.2022 18:24

Is there a way to send data from Activity to Fragment?

Ответить
Ruslan Nechyporuk
Ruslan Nechyporuk - 26.10.2022 10:41

How can I make the list persist when the application closes?

Ответить
Narendra Varma
Narendra Varma - 22.09.2022 12:33

use a Modal Bottom Sheet to allow the user to enter some text and create Decisions or Tasks.

Some users want to close the keyboard and they tap outside of the Bottom Sheet and close it. This is a big issue because all the text is lost.

The material design documentation states that it can be dismissed when the outside is touched but this doesn't work for me.

I want to intercept the onOutsideClick event and check the keyboard's state:

Keyboard shown: Close the soft keyboard
Keyboard hidden: Dismiss the Bottom Sheet
Should I use a custom BottomSheetBehavior or can I Override some dialog methods?

Ответить
Md sohan hossian sohan
Md sohan hossian sohan - 11.09.2022 06:54

Sir, I need a video of making an app. I will make an app for Bangladesh that can be connected from 64 districts. Can you give a video so that I can make this app?

Ответить
Olmos Davronov
Olmos Davronov - 06.09.2022 14:48

Wow! Just a quick clear video brings to mind the basic structure. Thanks, man👍👍

Ответить
Syahid Baddry
Syahid Baddry - 25.08.2022 09:50

thanks bro,but i have some problem i have arraylist<string> for task,and when im press save it not add task and when im open bottomsheetdialog again and just click textinput it will add my task i write before

Ответить
Prasanth Manimaran
Prasanth Manimaran - 10.08.2022 05:38

Just a small tips (probably you already know this). If you wanna duplicate a line, just press CTRL + D. It will copy a line below the original line

Ответить
Prasanth Manimaran
Prasanth Manimaran - 10.08.2022 05:27

Great video 😁😁

Ответить