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

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 183

  • @anonymousgoyal6792
    @anonymousgoyal6792 3 года назад +2

    This is awesome. I won't use spinner ever again. Thankyou so much

  • @TheNerdsHouse
    @TheNerdsHouse Год назад

    Bro 2 yrs old vid, but helped me a lot on work today. THANKS!!!

  • @avigyandas3829
    @avigyandas3829 2 года назад +7

    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 года назад +3

    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)

  • @jyotimoykashyap9179
    @jyotimoykashyap9179 3 года назад +3

    1st to watch , thanks for all these videos it really helps me so so much

  • @anuragtiwari2511
    @anuragtiwari2511 3 года назад +3

    Best exaplanation ever possible

  • @pickemparty
    @pickemparty 3 года назад +11

    Can you please share the Java code for the same element?

  • @luizpaulo6169
    @luizpaulo6169 3 года назад +12

    Your channel is amazing!!! Hugs from Brazil :)

  • @codingmafia1642
    @codingmafia1642 3 года назад +1

    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

  • @YoussefMoataz_
    @YoussefMoataz_ 3 года назад +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

  • @GAGANDEEP901
    @GAGANDEEP901 3 года назад +1

    thanks that helped a lot , can i also add a checkbox in the TextInputLayout along with the text, for multiple selections?

  • @yusamertcakr8419
    @yusamertcakr8419 2 года назад

    Thank you Yours are very helpful. but i got a a question about this video.
    How to set selected item ?

  • @manavtamboli2109
    @manavtamboli2109 3 года назад +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

  • @nareshsharma206
    @nareshsharma206 3 года назад +2

    Sir please answer this question from where you learn android development

  • @ampa4989
    @ampa4989 3 года назад +9

    Thank you. The videos are very helpful. It would be really nice if your editor were set to High Contrast instead of Dracula.

  • @mohammedsharikh9405
    @mohammedsharikh9405 3 года назад +3

    can you show me how to get value selected from this dropdown

  • @AadiOneYT
    @AadiOneYT 3 года назад +1

    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

  • @HelPfeffer
    @HelPfeffer 3 года назад +1

    I have a question a think you should have mentioned. How do you recive the input?

  • @CarlosMonteirotube
    @CarlosMonteirotube 5 месяцев назад

    what's your recommendation for the same type of dropdown with material3 and compose?

  • @ninabraelyn1857
    @ninabraelyn1857 2 года назад

    Thank you for the tutorial ! Can u explain on the binding part as well ?

  • @PiyushSharma-gw1wx
    @PiyushSharma-gw1wx 2 года назад

    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.

  • @areejturkei5482
    @areejturkei5482 3 года назад +4

    Can you convert the code in “create array adapter” to java? Cuz it’s give me syntax errors

  • @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 ? 😍

  • @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

  • @convi346
    @convi346 Год назад

    Very helpful Tutorial, thanks man!

  • @Jdg70
    @Jdg70 2 года назад

    Great video. was what I was looking for. Thank you!!

  • @mikumikomiku.
    @mikumikomiku. 3 года назад +3

    help i don't know how to create FirstFragment file and it didn't show how

  • @rubenvillanuevabaxarias5460
    @rubenvillanuevabaxarias5460 2 года назад +1

    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

  • @VenewebTV
    @VenewebTV 3 года назад +1

    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

  • @NHikmetK
    @NHikmetK 2 года назад

    İ 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 ?

  • @yogeshaggarwal5045
    @yogeshaggarwal5045 7 месяцев назад +1

    i am getting failed to instantiate one or more classes error and can not find the solution for it.

  • @alexong123
    @alexong123 2 года назад

    Hello sir. Did this drop down menu can use as select item in recycler view?

  • @temangoding
    @temangoding 3 года назад

    this is what im looking for, thanks sensei

  • @stephanrobert5593
    @stephanrobert5593 Год назад +1

    You forgot a few steps. what on earth and where did the bindings come from. My AutoCompleteTextView id does not popup when i type binding. Please dont do stuff off camera and expect people to know what you did

  • @sanketbhangale5788
    @sanketbhangale5788 3 года назад +1

    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?

  • @sulthan0022
    @sulthan0022 3 года назад +1

    is there java version of the adapter, i don't understand kotlin

  • @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 😉

  • @vladfedos5554
    @vladfedos5554 Год назад

    Thank you Bro. It's perfect.

  • @abdallaha.raheem3078
    @abdallaha.raheem3078 3 года назад +1

    In --- Val arrayAdapter = ArrayAdapter (requireContext(), ....)
    It's showing me error in requireContext
    What is this ?!

  • @anurajms
    @anurajms 3 года назад +1

    how do we add on click listeners to drop down menu items?
    thank you

  • @bigotes20random86
    @bigotes20random86 3 года назад +1

    Long life to you!! :)

  • @AndreaBonatti
    @AndreaBonatti 3 года назад +1

    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.

  • @BharadwajGiridhar
    @BharadwajGiridhar 3 года назад

    I just hit the 100th like Stevdza-San :D .

  • @bayuindradinata9209
    @bayuindradinata9209 3 года назад +2

    nive vid. well, may you give a tutorial for save a input value for this data menu dropdown to database mysql ? many thanks

  • @nomanzafarzafar7912
    @nomanzafarzafar7912 3 года назад

    Great effort bro. Keep it up.

  • @alexanderchurkin3531
    @alexanderchurkin3531 2 года назад

    Thank you. How to clear field after choosing an item ?

    • @smoybelizaire4100
      @smoybelizaire4100 2 года назад

      binding.autocomplete.setOnItemClickListener{adapterview,view,i,l->
      if(i==0){
      your toast here
      }else {
      Your toast here
      }
      Good luck
      }

  • @احمدالسكافي
    @احمدالسكافي 2 года назад +1

    This is a great work, but this method works with the "fragment" and does not work with the "activity"

  • @kurtl.3773
    @kurtl.3773 2 года назад

    how did you create firstfragment class?

  • @NishantKumar-cr6fb
    @NishantKumar-cr6fb 3 года назад

    Definetly looks good than spinner , helpful video

  • @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!?

  • @magoelias3846
    @magoelias3846 3 года назад +1

    Can you make this tutorial using java?

  • @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

  • @dankim4652
    @dankim4652 2 года назад

    Is it possible to remove the elevation and replace it with an outline for the item list dropped down?

  • @mehakmemon5605
    @mehakmemon5605 Год назад

    Pls anyone tell which which classses are imported in firstfragment

  • @runknown7366
    @runknown7366 Год назад +1

    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()
    }

  • @okisulton
    @okisulton 3 года назад +1

    can you give me tutorial to parsing data from json (retrofit) to exposed dropdown menu?

  • @DiegoTube85
    @DiegoTube85 3 года назад

    which app theme are you using?

  • @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

  • @techpark9486
    @techpark9486 2 года назад

    How can I add this programmatically? I can't add style to TextInputLayout programmatically

  • @_ytuser11
    @_ytuser11 2 года назад

    Sir I have also created an exposed drop down menu and I want to store the options in firebase.Please tell

  • @azwarinaazman
    @azwarinaazman Год назад

    Is this coding available in Java Language?

  • @anudeepananth
    @anudeepananth 3 года назад +1

    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 года назад +3

      It's not late, at least few years will pass until Jetpack Compose get the chance to become number one.

  • @UbedThaheem
    @UbedThaheem 2 года назад

    I need this code for Java, will you please explain?

  • @wilsonahanmisi1187
    @wilsonahanmisi1187 3 года назад

    Life Saver..... Keep it up

  • @itomasandev7418
    @itomasandev7418 3 года назад

    awesome video, can you give me tutorial about exposed dropdown menu with checkbox?

  • @hendri2018
    @hendri2018 2 года назад

    Why did i got an error 1:21, when using custom style? is there a way to fix that?

  • @alexanderfuentespe
    @alexanderfuentespe 3 года назад +1

    How can I get the selected item from the autocompletetextview

  • @markronderoragasa6493
    @markronderoragasa6493 2 года назад

    Is there a way to make it searchable?

  • @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.

  • @ZivShaltiel
    @ZivShaltiel 11 месяцев назад

    i think it doesn't work anymore, it igonres the inputtype attribute and doesnt show the options until you start to type

  • @hansheng654
    @hansheng654 2 года назад

    the dropdown hight doesn't seem to be calculated correctly when text become multiline ...

  • @ericuche755
    @ericuche755 3 года назад

    Please how do i create the “exposed drop down style “ it doesn’t show in my style

  • @makhalibagas
    @makhalibagas 3 года назад

    Thanks for this tutorial sir

  • @clo4k661
    @clo4k661 3 года назад

    How many years it takes you to reach this level?

  • @sjjayaswal7621
    @sjjayaswal7621 2 года назад

    Good information 👍

  • @Another0neTime
    @Another0neTime 3 года назад

    Great video!

  • @sujitprasadkushwaha9031
    @sujitprasadkushwaha9031 3 года назад

    you are the best. 🥰🥰❤️

  • @elsisdeo9060
    @elsisdeo9060 3 года назад

    Good, I need this, thanks btw

  • @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

  • @muhammadizzahramadhan3000
    @muhammadizzahramadhan3000 3 года назад

    i got error when inplementation this menu drop down.....can i see your implementation for drop down menu....please

  • @theblurdev2828
    @theblurdev2828 2 года назад

    Does anybody know how to set links to the different activities through the Drop down menu options?

  • @jaloliddinabdullaev2310
    @jaloliddinabdullaev2310 3 года назад

    thank you bro, nice video

  • @azizbekrasulmetov9293
    @azizbekrasulmetov9293 3 года назад +1

    You forgot to listen for selection which is quite a headache

  • @useptampan123
    @useptampan123 3 года назад +1

    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

  • @anujrai5894
    @anujrai5894 3 года назад +1

    please make Video series on JetPack Compose.

  • @darkcrow9319
    @darkcrow9319 Год назад

    How i can keep the endIcon static?

  • @matthewburdett2364
    @matthewburdett2364 3 года назад

    What ram and cpu do you have? My computer can't run emulator very well

    • @StevdzaSan
      @StevdzaSan  3 года назад

      16GB RAM, 8700k Intel.

    • @matthewburdett2364
      @matthewburdett2364 3 года назад

      @@StevdzaSan Thanks, great video. Spinner is very poor, I had problems making it same height as Edit Text. your method great,

  • @anudeepananth
    @anudeepananth 3 года назад

    a 1000 likes for this video if I could like that many times...

  • @jesmarsuan5516
    @jesmarsuan5516 3 года назад

    how to fix "Render Probelm" it appear everytime I add the "style"??

  • @farezrosli9623
    @farezrosli9623 3 года назад

    hello, can u make a tutorial on how to save spinner adapter data in firebase ? pls

  • @jyotimoykashyap9179
    @jyotimoykashyap9179 3 года назад

    A course on object animators , property animations , value animators etc , means the complete animation libraries of android would be great !

    • @StevdzaSan
      @StevdzaSan  3 года назад +2

      I'll keep that in mind for the future course when Jetpack Compose is stable.

    • @jyotimoykashyap9179
      @jyotimoykashyap9179 3 года назад

      @@StevdzaSan thank u so much though I guess animations are not related to Jetpack Compose 😅 directly .

  • @adidebnag6086
    @adidebnag6086 8 месяцев назад

    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 3 года назад

    Thank you

  • @NEMMOZ
    @NEMMOZ 2 месяца назад

    how to get item like in spinner as onItemSelected

  • @gunturdarmawan1513
    @gunturdarmawan1513 2 года назад +1

    why in my code FragmentFirstBinding still error, help me somebody plz

  • @Arun_rajak2786
    @Arun_rajak2786 3 года назад

    sir my drop down menu is not showing so what i do ?

  • @harunarrashid3048
    @harunarrashid3048 3 года назад

    Thankyou sir :D

  • @陳章民
    @陳章民 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 2 года назад

      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

  • @axw-ei3fn
    @axw-ei3fn 2 года назад

    Very useful.