Комментарии:
Hey, how could I use ?attr/colorPrimary instead of purple_500?
And how can I implement the delete function
i keep getting the same error even when onViewCreated fun is used, what should i do?
Ответить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?
ОтветитьSUPERB EXPLANATION
Ответить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
Man you are just amazing. After going through lots of videos I found yours and it's really worth it ✨
ОтветитьIs there a way to send data from Activity to Fragment?
ОтветитьHow can I make the list persist when the application closes?
Ответить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?
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?
ОтветитьWow! Just a quick clear video brings to mind the basic structure. Thanks, man👍👍
Ответить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
Ответить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
ОтветитьGreat video 😁😁
Ответить