Тёмный

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

Stevdza-San
Подписаться 85 тыс.
Просмотров 143 тыс.
50% 1

🏆 My Online Courses
stevdza-san.com
🐱‍👤 Wanna become a member? Join!
/ @stevdzasan
📸 Instagram
/ stevdza_san
Menus allow users to make a selection from multiple options. They are less prominent and take up less space than selection controls, such as a set of radio buttons. Exposed Drop-down menu is a new material design component, and you should use it as a replacement for an old Spinner. Watch the video to learn everything about it!
🕒 Timestamps:
0:00 - Introduction
0:27 - TextInputLayout with AutoCompleteTextView
2:30 - Disable InputType
3:10 - Create String-Array
3:44 - Create dropdown_item.xml
5:00 - Create ArrayAdapter
6:27 - FilledBox Style
7:44 - add onResume() function
8:47 - Icon and Label

Опубликовано:

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 183   
@anonymousgoyal6792
@anonymousgoyal6792 3 года назад
This is awesome. I won't use spinner ever again. Thankyou so much
@YoussefMoataz_
@YoussefMoataz_ 3 года назад
Brilliant , I am gonna apply this on my projects now 🤩👏👏
@tinch014
@tinch014 2 года назад
Thank you for the tutorial! The "onResume" part was really useful for me
@jyotimoykashyap9179
@jyotimoykashyap9179 3 года назад
1st to watch , thanks for all these videos it really helps me so so much
@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
@Jdg70
@Jdg70 2 года назад
Great video. was what I was looking for. Thank you!!
@TheNerdsHouse
@TheNerdsHouse Год назад
Bro 2 yrs old vid, but helped me a lot on work today. THANKS!!!
@convi346
@convi346 Год назад
Very helpful Tutorial, thanks man!
@areejturkei5482
@areejturkei5482 3 года назад
Can you convert the code in “create array adapter” to java? Cuz it’s give me syntax errors
@anuragtiwari2511
@anuragtiwari2511 3 года назад
Best exaplanation ever possible
@GAGANDEEP901
@GAGANDEEP901 2 года назад
thanks that helped a lot , can i also add a checkbox in the TextInputLayout along with the text, for multiple selections?
@ninabraelyn1857
@ninabraelyn1857 2 года назад
Thank you for the tutorial ! Can u explain on the binding part as well ?
@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.
@temangoding
@temangoding 2 года назад
this is what im looking for, thanks sensei
@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
@nomanzafarzafar7912
@nomanzafarzafar7912 3 года назад
Great effort bro. Keep it up.
@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
@anurajms
@anurajms 3 года назад
how do we add on click listeners to drop down menu items? thank you
@dankim4652
@dankim4652 Год назад
Is it possible to remove the elevation and replace it with an outline for the item list dropped down?
@pickemparty
@pickemparty 3 года назад
Can you please share the Java code for the same element?
@BharadwajGiridhar
@BharadwajGiridhar 3 года назад
I just hit the 100th like Stevdza-San :D .
@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
@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?
@CarlosMonteirotube
@CarlosMonteirotube Месяц назад
what's your recommendation for the same type of dropdown with material3 and compose?
@okisulton
@okisulton 3 года назад
can you give me tutorial to parsing data from json (retrofit) to exposed dropdown menu?
@alexong123
@alexong123 2 года назад
Hello sir. Did this drop down menu can use as select item in recycler view?
@HelPfeffer
@HelPfeffer 2 года назад
I have a question a think you should have mentioned. How do you recive the input?
@mohammedsharikh9405
@mohammedsharikh9405 3 года назад
can you show me how to get value selected from this dropdown
@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
@yusamertcakr8419
@yusamertcakr8419 2 года назад
Thank you Yours are very helpful. but i got a a question about this video. How to set selected item ?
@elsisdeo9060
@elsisdeo9060 3 года назад
Good, I need this, thanks btw
@nareshsharma206
@nareshsharma206 3 года назад
Sir please answer this question from where you learn android development
@vladfedos5554
@vladfedos5554 Год назад
Thank you Bro. It's perfect.
@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
@Another0neTime
@Another0neTime 3 года назад
Great video!
@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
@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
@markdelphi8075
@markdelphi8075 2 года назад
I can't understand why it behaves otherwise in my project. I do that exactly in that way, but after selection, when I change to a fragment and than come back, the list is empty. Why does it happen?
@mikumikomiku.
@mikumikomiku. 3 года назад
help i don't know how to create FirstFragment file and it didn't show how
@ericuche755
@ericuche755 2 года назад
Please how do i create the “exposed drop down style “ it doesn’t show in my style
@farezrosli9623
@farezrosli9623 3 года назад
hello, can u make a tutorial on how to save spinner adapter data in firebase ? pls
@sulthan0022
@sulthan0022 3 года назад
is there java version of the adapter, i don't understand kotlin
@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!?
@theblurdev2828
@theblurdev2828 2 года назад
Does anybody know how to set links to the different activities through the Drop down menu options?
@makhalibagas
@makhalibagas 3 года назад
Thanks for this tutorial sir
@muhammadizzahramadhan3000
@muhammadizzahramadhan3000 3 года назад
i got error when inplementation this menu drop down.....can i see your implementation for drop down menu....please
@jaloliddinabdullaev2310
@jaloliddinabdullaev2310 3 года назад
thank you bro, nice video
@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 ? 😍
@_ytuser11
@_ytuser11 2 года назад
Sir I have also created an exposed drop down menu and I want to store the options in firebase.Please tell
@wilsonahanmisi1187
@wilsonahanmisi1187 3 года назад
Life Saver..... Keep it up
@mehakmemon5605
@mehakmemon5605 Год назад
Pls anyone tell which which classses are imported in firstfragment
@DiegoTube85
@DiegoTube85 3 года назад
which app theme are you using?
@hendri2018
@hendri2018 2 года назад
Why did i got an error 1:21, when using custom style? is there a way to fix that?
@kurtl.3773
@kurtl.3773 2 года назад
how did you create firstfragment class?
@sujitprasadkushwaha9031
@sujitprasadkushwaha9031 3 года назад
you are the best. 🥰🥰❤️
@rr2r2r2ra
@rr2r2r2ra 2 года назад
how do we put the item selected into toast?
@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
@ErtBaran
@ErtBaran 3 года назад
Thanks so much. 💯
@AzkaLgamer
@AzkaLgamer 3 года назад
how a i get the selected item ? in this method?
@luizpaulo6169
@luizpaulo6169 3 года назад
Your channel is amazing!!! Hugs from Brazil :)
@_johndoew
@_johndoew 2 года назад
curti o canal dele tmb
@user-sv3ww2rz9o
@user-sv3ww2rz9o 2 года назад
please what's the name of the fragment where he wrote
@techpark9486
@techpark9486 2 года назад
How can I add this programmatically? I can't add style to TextInputLayout programmatically
@Arun_rajak2786
@Arun_rajak2786 3 года назад
sir my drop down menu is not showing so what i do ?
@jesmarsuan5516
@jesmarsuan5516 2 года назад
how to fix "Render Probelm" it appear everytime I add the "style"??
@sjjayaswal7621
@sjjayaswal7621 2 года назад
Good information 👍
@technicmachine
@technicmachine Год назад
Can you put the source code on github? I keep getting error with the style tag, telling me that it can't locate many different attributes.
@magoelias3846
@magoelias3846 3 года назад
Can you make this tutorial using java?
@akshaykondekar3571
@akshaykondekar3571 3 года назад
How can we show material spinner with custom object
@hansheng654
@hansheng654 Год назад
the dropdown hight doesn't seem to be calculated correctly when text become multiline ...
@SwagMessiah1
@SwagMessiah1 Год назад
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
@darkcrow9319
@darkcrow9319 11 месяцев назад
How i can keep the endIcon static?
@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?
@desimusfiroh6536
@desimusfiroh6536 3 года назад
how to get selected value from exposed dropdown menu ?
@UbedThaheem
@UbedThaheem Год назад
I need this code for Java, will you please explain?
@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
@markronderoragasa6493
@markronderoragasa6493 2 года назад
Is there a way to make it searchable?
@harunarrashid3048
@harunarrashid3048 2 года назад
Thankyou sir :D
@aarondraws7699
@aarondraws7699 2 года назад
how do I do this without a fragment
@AnthonyHeimlich
@AnthonyHeimlich 2 года назад
GOAT
@clo4k661
@clo4k661 3 года назад
How many years it takes you to reach this level?
@yogeshaggarwal5045
@yogeshaggarwal5045 4 месяца назад
i am getting failed to instantiate one or more classes error and can not find the solution for it.
@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.
@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 }
@itomasandev7418
@itomasandev7418 3 года назад
awesome video, can you give me tutorial about exposed dropdown menu with checkbox?
@manishsaxena2974
@manishsaxena2974 2 года назад
is there any java translation?
@fars7346
@fars7346 3 года назад
perfect timing...
@fzfxfcf
@fzfxfcf 3 года назад
I don't know what version of Android is that that always is using VAL. But this isn't mine
@user-wd5so4xk2b
@user-wd5so4xk2b Год назад
This is a great work, but this method works with the "fragment" and does not work with the "activity"
@HelPfeffer
@HelPfeffer 2 года назад
Thank you
@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 ?
@alexanderfuentespe
@alexanderfuentespe 3 года назад
How can I get the selected item from the autocompletetextview
@mohammedsharikh9405
@mohammedsharikh9405 3 года назад
please tell me if you find the code
@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
@azwarinaazman
@azwarinaazman Год назад
Is this coding available in Java Language?
@mehakmemon5605
@mehakmemon5605 Год назад
Can anyone pls send the source code as i am not able to get the imported classes here
@user-th7tm9lc7m
@user-th7tm9lc7m 2 года назад
6:23 appears private var _binding: FragmentFirstBinding? = null but my kt file does not know FragmentFirstBinding. Could somebody know how do I solve this problem?
@the0nerens
@the0nerens Год назад
It's named after the name of your fragment, since his fragment was called FirstFragment or something like that he had to use FragmentFirstBinding. In my case it was FragmentHomeBinding. It's: "Fragment(**Name of fragment**)Binding
@anurajms
@anurajms 3 года назад
thank you
@bileldallagi2890
@bileldallagi2890 2 года назад
please how i can send data to firebase ??
@nitishsharma5353
@nitishsharma5353 3 года назад
thanks sir
@theranjanmishra
@theranjanmishra Год назад
awsome
@itrustme4174
@itrustme4174 2 года назад
how to show Error when No Item was Selected ?
Далее
How To Make Dropdown Menu in Android Studio
5:21
Просмотров 52 тыс.
НОВАЯ ПАСХАЛКА В ЯНДЕКСЕ
00:20
Просмотров 1,1 млн
Motion Layout in Action | Android Studio Tutorial
14:19
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 926 тыс.
How To Debug React Apps Like A Senior Developer
21:07
Custom Spinner Android Studio
11:57
Просмотров 47 тыс.
Most overpowered way to build mobile apps?
8:33
Просмотров 744 тыс.