The BEST Way to Implement a Search In Jetpack Compose - Android Studio Tutorial
Vložit
- čas přidán 7. 02. 2023
- In this video you'll learn how to implement a search functionality in your Jetpack Compose project.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/drop-table-ment...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/newsletter
Join this channel to get access to perks:
/ @philipplackner
Get the source code for this video here:
github.com/philipplackner/Sea...
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
You like my free content? Here you can buy me a coffee:
www.buymeacoffee.com/philippl...
Your timing is impeccable lol. I was about to search for this topic, then I got a notification of the video posting.
I swear .... I was also looking for the same thing
x
but not working for my products get by api !!!
Even if I know the topic, I still watch your videos to the end because there is always something new to learn. In this video, I learned about the debounce operator. Amazing work. Thanks, @Phillip!
Same. 😄
that's great video. No one actually doing live coding and explaining these days. Thank you @Philipp
I really do love your tutorials Philipp, thanks so much
Again, very good and interessting video!!! even as a senior developer i always watch your videos and going to learn something new. keep on the good work! 🙏
I looked for something similar. Thank you! Cool video!
Neat and right to the point as usual. Keep doing the great work. 👌
Thanks!
Perfect!!!
Appreciate you Phillip
Thank you so much, Philipp!
Very cool video
Wish you all the best 👍👍
This will be very useful in my app! Thank you Phillip!
Perfect ! Thank you.
Super tutorial for us programmers 💪
Sir I learnt a lot from your videos..
Great video I was struggling to implement a correct way to search in the large size lists this helped me a lot.
❤
I really thank you for all your videos. I have learned many things from your channel. Recently, I know the concept of Android app modularization. But i don't know how to combine it with MVVM + Clean Architecture. I see quite a few videos about MVVM + Clean Architecture in your channel, its very useful. So can you make the video talk how to implement MVVM + Clean Architecture + Modularization? I think many people are also looking forward to this topic. I hope you see my comment. Finally, thank you for everything
thanks you so much i'm looking for this
Nice awesome!!!
so helpful
Thanks! Дякую :)
HAHA, I was just about to start implementing the search for my project and you release that video, wow! Thank you!
Can u make a video on how to make animated toolbar while scrolling. The case for example is a Profile screen. When you're in the top position of the screen - is has a big picture which covers all the top protion of the screen including the toolbar (with the clock and battery charge icon etc). But when you start scrolling the screen - the image and the user name collapses into a circle and name in the toolbar?
Another video idea: a Card view with images that you can switch by swiping left and right with the animated indicator of images count (like dots or something else)
And another one: a feature that allows you to upload multiple images (from the gallery or making multiple photos in the camera right away) into views and uploading them to the server
as always The training was excellent and effective 🙏🙏🙏🙏🙏👏👏👏👏👏👏
Thanks a lot
@Phillip this account is fake?
nice
Is it's good to use stateflow instead of mutableState(from compose API) specifically for this usecase
Great vid
Is there a reason why you put matchingCombinations inside doesMatchSearchQuery?
Wouldn't it better to put it outside as a val in Person class?
Could you please make a video about SearchBar in Compose?
Today I learnt that there about the .update{} function, I've always been using .value !
Thanks, Philipp. Great video, as always. Left you a coffee (actually 2) :)
I have a question. What would be best practice if I wanted to show search results while the search is still in progress?
I mean for cases where I don't want to use pagination and the search takes some time, but the API returns intermediate results.
In case there is no short and easy answer for that, and you didn't already post a video I missed, it would be a nice topic for a video in the future.
Thanks.
Thanks for the coffees 👍🏼👍🏼
That could be achieved with a custom flow in which you perform the search. Every time you get results, you emit them in the flow
Just gonna leave a comment here to help the algorithm
hey philipp great video btw, i was wondering what if i wanna implement something like this where in the text field the user only puts "phi" and the rest of the characters of the possible result are there for eg : -
"Phil"ipp lackner
Nice video, but this one is affecting unit tests of my ViewModel because asserting that persons StateFlow value can come with default value is always throwing error.
How would you do this with a database ( such as sqlite) so that the list can reload after filtering?
Mr philipp, please make same lesson with Retrofit and paging 3? i need it
Philipp, thanks for the lesson, but how can get data from a file to listof?
Phillip, please 🥺, make a video about the best way to get offline text, is xml files the best idea?. How to use strings in strings.xml and how to search those strings using jetpack compose. I'm having a lot of trouble making a offline quiz app using xml to place a large amount of text.
❤❤❤
Hi!
Do you have and idea how to implement search panel with/in dropDownMenu? I tried to do it but i have one problem. When user press longer than normal click on Search app is crashing. Im trying to solve it but nothing works:((
Please make a video on three type of mutableSharedflow converted to single livedata. One is for search and second one is for sorting and third one is for filter. All in room database with rcv list adapter
Whats the improvement by using livedata here?
Hot to make the Keyboard show the Search icon instead of Enter when inside the search field?
How can I now put this _searchText, _person etc. to another class representing states for that screen? Typically i would have "_someScreenState" class and inside values which are basic types like strings, ints etc. In this case my searchText would be just a normal string and we cannot use "combine" function
philip do u find urself using xml from time to time? or just only compose
Not for new projects, but for older ones that still use it
Point me to your beginners guide on jetpack compose please
Why didn't you override the in operator or the contains function
Could you please do something similar to this but with sorting? by name and last name thx 😁
Add a sortedBy function after the filter 🤔
I wanna like to meet Beff Jezos..
I got a question. If we have list of people, should we name the variable people or persons? You're naming it persons, but whats wrong with people?
Because the class is named person, so the intuitive naming is just the plural of it. Otherwise you could also call it humans, but nobody would guess that if they don't see it
@@PhilippLackner But the plural of person is people
@@markfrelih Oh lol, didn't know that haha
@@PhilippLackner adding an "s" for lists of objects is a common idiom in Kotlin, and using "persons" instead of "people" would be acceptable for quick understandability, even if its not proper english.
Friend can not put caption on the videos of your course please ?
Beff Jezoz
`doesMatchSearchQuery` inside `Person` brakes SOLID principles. It's better to move this function to another class.
As I mentioned in the video to make a searchable interface 🤷🏼♂️
bro are you searious? your courses are 33Lakh rupees for one course ? dude wtf
@@alphacoder3822 it's just India that makes 9900€ out of 99,00€😂 you're just using a different decimal system, the courses are all 60 - 160€.
everytime I want something to implement, and you will make a video about it hhhhh
I spy on you
@@PhilippLackner yeah me too, on your left captain