No video

Exposed Drop-Down Menu - Forget about Spinner | Android Studio Tutorial

  Рет қаралды 144,406

Stevdza-San

Stevdza-San

Күн бұрын

Пікірлер: 182
@avigyandas3829
@avigyandas3829 Жыл бұрын
Cannot understand the view binding part in 5:11 mark, I can't really seem to achieve that even after having viewBinding on in the gradle file
@SwagMessiah1
@SwagMessiah1 2 жыл бұрын
For those having issues with the binding issue at around the ~6:30 mark, just do the code work in onViewCreated instead of onCreateView because then you can use your then inflated view to add the dropdown options. So in onViewCreated it would look something like this for kotlin: view.findViewById().setAdapter(arrayAdapter)
@elminmidzic5994
@elminmidzic5994 Жыл бұрын
Thanks a lot
@anonymousgoyal6792
@anonymousgoyal6792 3 жыл бұрын
This is awesome. I won't use spinner ever again. Thankyou so much
@jyotimoykashyap9179
@jyotimoykashyap9179 3 жыл бұрын
1st to watch , thanks for all these videos it really helps me so so much
@pickemparty
@pickemparty 3 жыл бұрын
Can you please share the Java code for the same element?
@TheNerdsHouse
@TheNerdsHouse Жыл бұрын
Bro 2 yrs old vid, but helped me a lot on work today. THANKS!!!
@YoussefMoataz_
@YoussefMoataz_ 3 жыл бұрын
Brilliant , I am gonna apply this on my projects now 🤩👏👏
@anuragtiwari2511
@anuragtiwari2511 3 жыл бұрын
Best exaplanation ever possible
@luizpaulo6169
@luizpaulo6169 3 жыл бұрын
Your channel is amazing!!! Hugs from Brazil :)
@_johndoew
@_johndoew 3 жыл бұрын
curti o canal dele tmb
@user-sv3ww2rz9o
@user-sv3ww2rz9o 2 жыл бұрын
please what's the name of the fragment where he wrote
@mohammedsharikh9405
@mohammedsharikh9405 3 жыл бұрын
can you show me how to get value selected from this dropdown
@mikumikomiku.
@mikumikomiku. 3 жыл бұрын
help i don't know how to create FirstFragment file and it didn't show how
@tinch014
@tinch014 2 жыл бұрын
Thank you for the tutorial! The "onResume" part was really useful for me
@areejturkei5482
@areejturkei5482 3 жыл бұрын
Can you convert the code in “create array adapter” to java? Cuz it’s give me syntax errors
@codingmafia1642
@codingmafia1642 3 жыл бұрын
Great Video ,but challenge is when u set backgroundColor for AutoCompleteTextView doesn't appear which forces you to set for TextInputLayout and which create a space above hint text that doesn't align
@Jdg70
@Jdg70 2 жыл бұрын
Great video. was what I was looking for. Thank you!!
@HelPfeffer
@HelPfeffer 2 жыл бұрын
I have a question a think you should have mentioned. How do you recive the input?
@nareshsharma206
@nareshsharma206 3 жыл бұрын
Sir please answer this question from where you learn android development
@convi346
@convi346 Жыл бұрын
Very helpful Tutorial, thanks man!
@abdallaha.raheem3078
@abdallaha.raheem3078 3 жыл бұрын
In --- Val arrayAdapter = ArrayAdapter (requireContext(), ....) It's showing me error in requireContext What is this ?!
@AadiOneYT
@AadiOneYT 3 жыл бұрын
explanation and video was very helpful but I think spinner still better in handling item selection listener, both have different usage I think so we still need spinner in some cases
@ramidominguez7849
@ramidominguez7849 2 жыл бұрын
any example of what you say?
@sulthan0022
@sulthan0022 3 жыл бұрын
is there java version of the adapter, i don't understand kotlin
@vladfedos5554
@vladfedos5554 Жыл бұрын
Thank you Bro. It's perfect.
@manavtamboli2109
@manavtamboli2109 3 жыл бұрын
The offset in the FilledBox style might be because filled box has a floating hint/label and it left the space for it
@miliriam7060
@miliriam7060 2 жыл бұрын
hi please i wrote all this code but they tell me i was wrong i wrote it in FragmentFirstJava, if you are urgent please answer me
@temangoding
@temangoding 2 жыл бұрын
this is what im looking for, thanks sensei
@ampa4989
@ampa4989 3 жыл бұрын
Thank you. The videos are very helpful. It would be really nice if your editor were set to High Contrast instead of Dracula.
@GAGANDEEP901
@GAGANDEEP901 2 жыл бұрын
thanks that helped a lot , can i also add a checkbox in the TextInputLayout along with the text, for multiple selections?
@nomanzafarzafar7912
@nomanzafarzafar7912 3 жыл бұрын
Great effort bro. Keep it up.
@anurajms
@anurajms 3 жыл бұрын
how do we add on click listeners to drop down menu items? thank you
@yusamertcakr8419
@yusamertcakr8419 2 жыл бұрын
Thank you Yours are very helpful. but i got a a question about this video. How to set selected item ?
@CarlosMonteirotube
@CarlosMonteirotube 2 ай бұрын
what's your recommendation for the same type of dropdown with material3 and compose?
@user-wd5so4xk2b
@user-wd5so4xk2b 2 жыл бұрын
This is a great work, but this method works with the "fragment" and does not work with the "activity"
@sanketbhangale5788
@sanketbhangale5788 2 жыл бұрын
In my case after selecting one item from the dropdown, When I go for selecting it again it only shows one item in the dropdown list any ideas why it is happening?
@alexanderfuentespe
@alexanderfuentespe 3 жыл бұрын
How can I get the selected item from the autocompletetextview
@mohammedsharikh9405
@mohammedsharikh9405 3 жыл бұрын
please tell me if you find the code
@dinurangapriyasad5872
@dinurangapriyasad5872 3 жыл бұрын
This will helpfull to everyone who likes to learn android... can you please give us to tutorial about the in-app purchases ? 😍
@makhalibagas
@makhalibagas 3 жыл бұрын
Thanks for this tutorial sir
@PiyushSharma-gw1wx
@PiyushSharma-gw1wx Жыл бұрын
hi sir thank you for such an informative video just wanted to know how could i put the menu item list at bottom of the drop down since it coming on top of drop down container.
@wilsonahanmisi1187
@wilsonahanmisi1187 3 жыл бұрын
Life Saver..... Keep it up
@bigotes20random86
@bigotes20random86 3 жыл бұрын
Long life to you!! :)
@StevdzaSan
@StevdzaSan 3 жыл бұрын
👊💜
@BharadwajGiridhar
@BharadwajGiridhar 3 жыл бұрын
I just hit the 100th like Stevdza-San :D .
@ogieperalta9414
@ogieperalta9414 Жыл бұрын
When I input the Exposed Drop Down menu as the style the thing ain't showing and it gives an error failed to instantiate one or more classes
@elsisdeo9060
@elsisdeo9060 3 жыл бұрын
Good, I need this, thanks btw
@magoelias3846
@magoelias3846 3 жыл бұрын
Can you make this tutorial using java?
@Another0neTime
@Another0neTime 3 жыл бұрын
Great video!
@runknown7366
@runknown7366 Жыл бұрын
nice video - Getting the value of the selection would help. I used this code snippet. Im assuming this could be improved. binding.autoCompleteTextView.onItemClickListener = AdapterView.OnItemClickListener { parent, view, position, id -> val item = parent.getItemAtPosition(position) Toast.makeText(this, item.toString(), Toast.LENGTH_LONG).show() }
@jaloliddinabdullaev2310
@jaloliddinabdullaev2310 3 жыл бұрын
thank you bro, nice video
@sujitprasadkushwaha9031
@sujitprasadkushwaha9031 3 жыл бұрын
you are the best. 🥰🥰❤️
@sjjayaswal7621
@sjjayaswal7621 2 жыл бұрын
Good information 👍
@ninabraelyn1857
@ninabraelyn1857 2 жыл бұрын
Thank you for the tutorial ! Can u explain on the binding part as well ?
@AndreaBonatti
@AndreaBonatti 3 жыл бұрын
Spinner is better! With the drop down menu there are no method to set selected item, get selected item, get selected item position, no method to create dependant menu. The drop down menu is good only for the most basic usage.
@rubenvillanuevabaxarias5460
@rubenvillanuevabaxarias5460 2 жыл бұрын
Hello and thank you for the video. How do I know in which string of the array I am at a certain moment? I would like to see changes in the screen when I change for example from English to Chinese, so how could I track in the code that I have changed from English to Chinese? Thanks in advance.
@deeno9631
@deeno9631 2 жыл бұрын
hello, do you already have the answer for this problem, because I have the same problem as well I want to track the code from the dropdown list that I choose
@bayuindradinata9209
@bayuindradinata9209 3 жыл бұрын
nive vid. well, may you give a tutorial for save a input value for this data menu dropdown to database mysql ? many thanks
@VenewebTV
@VenewebTV 3 жыл бұрын
Thanks for the video, usefull and updated, is possible for you to create an option to download the video's code in Java? Regards from Caracas, Venezuela
@azizbekrasulmetov9293
@azizbekrasulmetov9293 2 жыл бұрын
You forgot to listen for selection which is quite a headache
@user-sv3ww2rz9o
@user-sv3ww2rz9o 2 жыл бұрын
where we should write this
@ErtBaran
@ErtBaran 3 жыл бұрын
Thanks so much. 💯
@hansheng654
@hansheng654 Жыл бұрын
the dropdown hight doesn't seem to be calculated correctly when text become multiline ...
@mehakmemon5605
@mehakmemon5605 Жыл бұрын
Pls anyone tell which which classses are imported in firstfragment
@okisulton
@okisulton 3 жыл бұрын
can you give me tutorial to parsing data from json (retrofit) to exposed dropdown menu?
@yogeshaggarwal5045
@yogeshaggarwal5045 4 ай бұрын
i am getting failed to instantiate one or more classes error and can not find the solution for it.
@NHikmetK
@NHikmetK Жыл бұрын
İ have been studying android for 16 month and i have started from zero during this period l had a chance to work on a real project for 5 month. Do you think can l work as an android developer ?
@ZivShaltiel
@ZivShaltiel 9 ай бұрын
i think it doesn't work anymore, it igonres the inputtype attribute and doesnt show the options until you start to type
@harunarrashid3048
@harunarrashid3048 3 жыл бұрын
Thankyou sir :D
@techpark9486
@techpark9486 2 жыл бұрын
How can I add this programmatically? I can't add style to TextInputLayout programmatically
@Dodo-td1pg
@Dodo-td1pg 3 жыл бұрын
I'm using precisely same code, but I don't get dropdowns just why..
@thecodeiseverything
@thecodeiseverything 3 жыл бұрын
WHY WHY WHY. @Stevdza-San
@bboydarknesz
@bboydarknesz 3 жыл бұрын
I always have problem in dropdown if items is dynamic. Like I get Model from API and need to pass the ID from selected item. Usually I manipulate it with save the Model globally,when select item, I set selected item. Do you have best idea for this case??? Thank youuu
@aarondraws7699
@aarondraws7699 2 жыл бұрын
how do I do this without a fragment
@anudeepananth
@anudeepananth 3 жыл бұрын
Could you plz do Videos on Jetpack Compose... Since it's in beta... I feel like learning XML is a bit too late now...
@StevdzaSan
@StevdzaSan 3 жыл бұрын
It's not late, at least few years will pass until Jetpack Compose get the chance to become number one.
@adidebnag6086
@adidebnag6086 5 ай бұрын
Hello! Just wanted to ask if anyone knows how to programmatically reset the selection to the Layout? Like to the point where it has nothing selected with just the hint showing. If anyone figures that out, please let me know :)
@HelPfeffer
@HelPfeffer 2 жыл бұрын
Thank you
@dankim4652
@dankim4652 Жыл бұрын
Is it possible to remove the elevation and replace it with an outline for the item list dropped down?
@alexanderchurkin3531
@alexanderchurkin3531 2 жыл бұрын
Thank you. How to clear field after choosing an item ?
@smoybelizaire4100
@smoybelizaire4100 Жыл бұрын
binding.autocomplete.setOnItemClickListener{adapterview,view,i,l-> if(i==0){ your toast here }else { Your toast here } Good luck }
@NishantKumar-cr6fb
@NishantKumar-cr6fb 3 жыл бұрын
Definetly looks good than spinner , helpful video
@muhammadsarimmehdi
@muhammadsarimmehdi 2 жыл бұрын
If I set layout_width to wrap_content, I get a warning about localized text expansion. How do I get rid of this without using the suppress warning annotation since that doesn't really solve the problem
@fadzriangibran799
@fadzriangibran799 3 жыл бұрын
can we retrieve the data from the API and display it in the drop-down menu?
@kalibra2121
@kalibra2121 3 жыл бұрын
well, depends what you're getting from the API.. for example if you get a list of items you can pass the list to the adapter and get the same result
@InvincibleXXX
@InvincibleXXX 3 жыл бұрын
Thank you very much
@StevdzaSan
@StevdzaSan 3 жыл бұрын
Always glad to help 👊
@axw-ei3fn
@axw-ei3fn 2 жыл бұрын
Very useful.
@StevdzaSan
@StevdzaSan 2 жыл бұрын
Thanks
@adamrampazzo1739
@adamrampazzo1739 Жыл бұрын
"No value passed for parameter 'provider' in ContentProviderCompat.requireContext( 'here' )". How do I proceed?
@darkcrow9319
@darkcrow9319 Жыл бұрын
How i can keep the endIcon static?
@alexong123
@alexong123 2 жыл бұрын
Hello sir. Did this drop down menu can use as select item in recycler view?
@kurtl.3773
@kurtl.3773 2 жыл бұрын
how did you create firstfragment class?
@theblurdev2828
@theblurdev2828 2 жыл бұрын
Does anybody know how to set links to the different activities through the Drop down menu options?
@anujrai5894
@anujrai5894 3 жыл бұрын
please make Video series on JetPack Compose.
@StevdzaSan
@StevdzaSan 3 жыл бұрын
When it's stable.
@pickemparty
@pickemparty 3 жыл бұрын
I have set android:inputType="none" in the xml layout but the user is still able to enter text!? I am not sure how your does not allow it!?
@gunturdarmawan1513
@gunturdarmawan1513 2 жыл бұрын
why in my code FragmentFirstBinding still error, help me somebody plz
@user-sv3ww2rz9o
@user-sv3ww2rz9o 2 жыл бұрын
where we should write this
@anurajms
@anurajms 3 жыл бұрын
thank you
@adithyaraj307
@adithyaraj307 2 жыл бұрын
Steve bro, apart from AutoCompleteTextView can we use any other text view for same purpose it is possible.....🤔
@StevdzaSan
@StevdzaSan 2 жыл бұрын
Well Compose offers a lot of flexibility. I'm no longer using XML 😉
@hendri2018
@hendri2018 2 жыл бұрын
Why did i got an error 1:21, when using custom style? is there a way to fix that?
@muhammadizzahramadhan3000
@muhammadizzahramadhan3000 3 жыл бұрын
i got error when inplementation this menu drop down.....can i see your implementation for drop down menu....please
@_ytuser11
@_ytuser11 2 жыл бұрын
Sir I have also created an exposed drop down menu and I want to store the options in firebase.Please tell
@jesmarsuan5516
@jesmarsuan5516 2 жыл бұрын
how to fix "Render Probelm" it appear everytime I add the "style"??
@fars7346
@fars7346 3 жыл бұрын
perfect timing...
@ericuche755
@ericuche755 2 жыл бұрын
Please how do i create the “exposed drop down style “ it doesn’t show in my style
@nitishsharma5353
@nitishsharma5353 3 жыл бұрын
thanks sir
@azamovdev
@azamovdev Жыл бұрын
this bomba ) prosta bomb
@fzfxfcf
@fzfxfcf 3 жыл бұрын
I don't know what version of Android is that that always is using VAL. But this isn't mine
@rr2r2r2ra
@rr2r2r2ra 2 жыл бұрын
how do we put the item selected into toast?
@ingridsilva3448
@ingridsilva3448 2 жыл бұрын
Thank you
@user-sv3ww2rz9o
@user-sv3ww2rz9o 2 жыл бұрын
where we should write this
@markronderoragasa6493
@markronderoragasa6493 2 жыл бұрын
Is there a way to make it searchable?
@theranjanmishra
@theranjanmishra Жыл бұрын
awsome
@akshaykondekar3571
@akshaykondekar3571 3 жыл бұрын
How can we show material spinner with custom object
@itomasandev7418
@itomasandev7418 3 жыл бұрын
awesome video, can you give me tutorial about exposed dropdown menu with checkbox?
How to Implement a Context Drop Down Menu In Jetpack Compose
18:17
Philipp Lackner
Рет қаралды 25 М.
Spinner in Android Studio using Kotlin | Android Knowledge
11:17
Android Knowledge
Рет қаралды 6 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 158 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 4,1 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 107 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 15 МЛН
The perfect imperfection of Google's Material You
15:47
David Imel
Рет қаралды 431 М.
Do you need Design Skills to Build Great Apps?
9:33
Stevdza-San
Рет қаралды 4,2 М.
Spinner in Android Studio - Mastering Android Course #31
15:49
Master Coding
Рет қаралды 2,1 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 963 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 940 М.
How To Make Dropdown Menu in Android Studio
5:21
FineGap
Рет қаралды 54 М.
Scammed selling my MacBook, almost
15:09
Alex Ziskind
Рет қаралды 26 М.
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 66 М.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 158 МЛН