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?
thanks bro,but i have some problem i have arraylist 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
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
So we do create a referenece in both the fragment and the activity the key part being that the "Owner" in both cases is the Activity. Does that answer your question?
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?
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
Man you are just amazing. After going through lots of videos I found yours and it's really worth it ✨
Thanks, very kind of you to say
Wow! Just a quick clear video brings to mind the basic structure. Thanks, man👍👍
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?
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
Great video 😁😁
Thanks
Hey, how could I use ?attr/colorPrimary instead of purple_500?
And how can I implement the delete function
thanks bro,but i have some problem i have arraylist 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
my input does not appear, I don't know if its because I am using a fragment
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
So we do create a referenece in both the fragment and the activity the key part being that the "Owner" in both cases is the Activity.
Does that answer your question?
Is there a way to send data from Activity to Fragment?
I think it can share with view model yes
How can I make the list persist when the application closes?
that tutorial is coming...
@@CodeWithCal link?
or is it not made yet?
Room Database Android Studio Kotlin Example Tutorial
ua-cam.com/video/-LNg-K7SncM/v-deo.html
i keep getting the same error even when onViewCreated fun is used, what should i do?
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?
this looks difficult for beginners. even no proper explanation