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)
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
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
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.
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.
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
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
İ 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 ?
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
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?
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.
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
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() }
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
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 :)
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?
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
This is awesome. I won't use spinner ever again. Thankyou so much
Bro 2 yrs old vid, but helped me a lot on work today. THANKS!!!
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
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)
Thanks a lot
1st to watch , thanks for all these videos it really helps me so so much
Best exaplanation ever possible
Can you please share the Java code for the same element?
Your channel is amazing!!! Hugs from Brazil :)
curti o canal dele tmb
please what's the name of the fragment where he wrote
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
Brilliant , I am gonna apply this on my projects now 🤩👏👏
Thank you for the tutorial! The "onResume" part was really useful for me
thanks that helped a lot , can i also add a checkbox in the TextInputLayout along with the text, for multiple selections?
Thank you Yours are very helpful. but i got a a question about this video.
How to set selected item ?
The offset in the FilledBox style might be because filled box has a floating hint/label and it left the space for it
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
Sir please answer this question from where you learn android development
Thank you. The videos are very helpful. It would be really nice if your editor were set to High Contrast instead of Dracula.
can you show me how to get value selected from this dropdown
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
any example of what you say?
I have a question a think you should have mentioned. How do you recive the input?
what's your recommendation for the same type of dropdown with material3 and compose?
Thank you for the tutorial ! Can u explain on the binding part as well ?
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.
Can you convert the code in “create array adapter” to java? Cuz it’s give me syntax errors
This will helpfull to everyone who likes to learn android... can you please give us to tutorial about the in-app purchases ? 😍
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
Very helpful Tutorial, thanks man!
Great video. was what I was looking for. Thank you!!
help i don't know how to create FirstFragment file and it didn't show how
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.
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
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
İ 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 ?
i am getting failed to instantiate one or more classes error and can not find the solution for it.
Hello sir. Did this drop down menu can use as select item in recycler view?
this is what im looking for, thanks sensei
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
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?
is there java version of the adapter, i don't understand kotlin
Steve bro, apart from AutoCompleteTextView can we use any other text view for same purpose it is possible.....🤔
Well Compose offers a lot of flexibility. I'm no longer using XML 😉
Thank you Bro. It's perfect.
In --- Val arrayAdapter = ArrayAdapter (requireContext(), ....)
It's showing me error in requireContext
What is this ?!
how do we add on click listeners to drop down menu items?
thank you
Long life to you!! :)
👊💜
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.
I just hit the 100th like Stevdza-San :D .
nive vid. well, may you give a tutorial for save a input value for this data menu dropdown to database mysql ? many thanks
Great effort bro. Keep it up.
Thank you. How to clear field after choosing an item ?
binding.autocomplete.setOnItemClickListener{adapterview,view,i,l->
if(i==0){
your toast here
}else {
Your toast here
}
Good luck
}
This is a great work, but this method works with the "fragment" and does not work with the "activity"
how did you create firstfragment class?
Definetly looks good than spinner , helpful video
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!?
Can you make this tutorial using java?
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
Is it possible to remove the elevation and replace it with an outline for the item list dropped down?
Pls anyone tell which which classses are imported in firstfragment
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()
}
can you give me tutorial to parsing data from json (retrofit) to exposed dropdown menu?
which app theme are you using?
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
How can I add this programmatically? I can't add style to TextInputLayout programmatically
Sir I have also created an exposed drop down menu and I want to store the options in firebase.Please tell
Is this coding available in Java Language?
Could you plz do Videos on Jetpack Compose... Since it's in beta... I feel like learning XML is a bit too late now...
It's not late, at least few years will pass until Jetpack Compose get the chance to become number one.
I need this code for Java, will you please explain?
Life Saver..... Keep it up
awesome video, can you give me tutorial about exposed dropdown menu with checkbox?
Why did i got an error 1:21, when using custom style? is there a way to fix that?
How can I get the selected item from the autocompletetextview
please tell me if you find the code
Is there a way to make it searchable?
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.
i think it doesn't work anymore, it igonres the inputtype attribute and doesnt show the options until you start to type
the dropdown hight doesn't seem to be calculated correctly when text become multiline ...
Please how do i create the “exposed drop down style “ it doesn’t show in my style
Thanks for this tutorial sir
How many years it takes you to reach this level?
Good information 👍
Great video!
you are the best. 🥰🥰❤️
Good, I need this, thanks btw
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
i got error when inplementation this menu drop down.....can i see your implementation for drop down menu....please
Does anybody know how to set links to the different activities through the Drop down menu options?
thank you bro, nice video
You forgot to listen for selection which is quite a headache
where we should write this
can we retrieve the data from the API and display it in the drop-down menu?
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
please make Video series on JetPack Compose.
When it's stable.
How i can keep the endIcon static?
What ram and cpu do you have? My computer can't run emulator very well
16GB RAM, 8700k Intel.
@@StevdzaSan Thanks, great video. Spinner is very poor, I had problems making it same height as Edit Text. your method great,
a 1000 likes for this video if I could like that many times...
how to fix "Render Probelm" it appear everytime I add the "style"??
hello, can u make a tutorial on how to save spinner adapter data in firebase ? pls
A course on object animators , property animations , value animators etc , means the complete animation libraries of android would be great !
I'll keep that in mind for the future course when Jetpack Compose is stable.
@@StevdzaSan thank u so much though I guess animations are not related to Jetpack Compose 😅 directly .
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 :)
Thank you
how to get item like in spinner as onItemSelected
why in my code FragmentFirstBinding still error, help me somebody plz
where we should write this
sir my drop down menu is not showing so what i do ?
Thankyou sir :D
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?
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
Very useful.
Thanks