The BEST Way to Implement a Search In Jetpack Compose - Android Studio Tutorial

  Рет қаралды 40,619

Philipp Lackner

Philipp Lackner

Күн бұрын

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/...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/...
Join this channel to get access to perks:
/ @philipplackner
Get the source code for this video here:
github.com/phi...
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/phi...
You like my free content? Here you can buy me a coffee:
www.buymeacoff...

Пікірлер: 79
@safionweb
@safionweb Жыл бұрын
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!
@CommanderSteps
@CommanderSteps Жыл бұрын
Same. 😄
@cking24343
@cking24343 Жыл бұрын
Your timing is impeccable lol. I was about to search for this topic, then I got a notification of the video posting.
@spookyhades6231
@spookyhades6231 Жыл бұрын
I swear .... I was also looking for the same thing
@alejandrogallego5419
@alejandrogallego5419 Жыл бұрын
x
@onlyDevz
@onlyDevz 5 ай бұрын
but not working for my products get by api !!!
@coderstubechannel
@coderstubechannel Жыл бұрын
Super tutorial for us programmers 💪
@rpitpatel1004
@rpitpatel1004 Жыл бұрын
that's great video. No one actually doing live coding and explaining these days. Thank you @Philipp
@LoveOurLife19
@LoveOurLife19 Жыл бұрын
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
@AlexKind1917
@AlexKind1917 Жыл бұрын
I looked for something similar. Thank you! Cool video!
@mustafaammar551
@mustafaammar551 Жыл бұрын
Very cool video Wish you all the best 👍👍
@AndroidDeveloperTips
@AndroidDeveloperTips Жыл бұрын
Neat and right to the point as usual. Keep doing the great work. 👌
@PhilippLackner
@PhilippLackner Жыл бұрын
Thanks!
@makzimalist
@makzimalist Жыл бұрын
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! 🙏
@PamontBahktar
@PamontBahktar Жыл бұрын
I really do love your tutorials Philipp, thanks so much
@mryup6100
@mryup6100 9 ай бұрын
This will be very useful in my app! Thank you Phillip!
@sasha0elf
@sasha0elf Жыл бұрын
Thank you so much, Philipp!
@bharathprakash
@bharathprakash Жыл бұрын
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. ❤
@proandroiddevir
@proandroiddevir Жыл бұрын
as always The training was excellent and effective 🙏🙏🙏🙏🙏👏👏👏👏👏👏
@johnshepard1267
@johnshepard1267 Жыл бұрын
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
@sevbanthebuyer
@sevbanthebuyer Жыл бұрын
Perfect ! Thank you.
@mrjackson9137
@mrjackson9137 Жыл бұрын
Could you please make a video about SearchBar in Compose?
@iamadetoye
@iamadetoye Жыл бұрын
Perfect!!! Appreciate you Phillip
@alejandrogallego5419
@alejandrogallego5419 Жыл бұрын
Thanks a lot
@alejandrogallego5419
@alejandrogallego5419 Жыл бұрын
@Phillip this account is fake?
@maciejnowak2120
@maciejnowak2120 Жыл бұрын
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:((
@stezo9770
@stezo9770 Жыл бұрын
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.
@PhilippLackner
@PhilippLackner Жыл бұрын
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
@antpr2
@antpr2 Жыл бұрын
Today I learnt that there about the .update{} function, I've always been using .value !
@justmeagain9302
@justmeagain9302 Ай бұрын
I am often noticing 16.dp being a choice for spacing, is this a stylistic choice or is there theory behind it?
@sonnguyenphuc8142
@sonnguyenphuc8142 Жыл бұрын
thanks you so much i'm looking for this
@user-wr9es5lu2p
@user-wr9es5lu2p 4 ай бұрын
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
@Coldalecs
@Coldalecs 5 ай бұрын
Hot to make the Keyboard show the Search icon instead of Enter when inside the search field?
@maksBan1919
@maksBan1919 4 ай бұрын
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
@AntonK-ql2ev
@AntonK-ql2ev 3 ай бұрын
Philipp, thanks for the lesson, but how can get data from a file to listof?
@elohimalves
@elohimalves Жыл бұрын
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.
@PandaTop.
@PandaTop. Жыл бұрын
Thanks! Дякую :)
@skjahirhossain5084
@skjahirhossain5084 Жыл бұрын
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
@ChrisAthanas
@ChrisAthanas Жыл бұрын
Whats the improvement by using livedata here?
@kevalkanpariya
@kevalkanpariya Жыл бұрын
Is it's good to use stateflow instead of mutableState(from compose API) specifically for this usecase
@abada-s
@abada-s Жыл бұрын
Why didn't you override the in operator or the contains function
@julitogadia
@julitogadia Ай бұрын
I wrote same code for searching but it is failing unit testing.
@djpharaohoftime3200
@djpharaohoftime3200 Жыл бұрын
How would you do this with a database ( such as sqlite) so that the list can reload after filtering?
@godeons
@godeons 6 ай бұрын
Point me to your beginners guide on jetpack compose please
@somdatatechnology233
@somdatatechnology233 Жыл бұрын
Mr philipp, please make same lesson with Retrofit and paging 3? i need it
@EmanNollase
@EmanNollase Жыл бұрын
Nice awesome!!!
@ka61er
@ka61er 11 ай бұрын
so helpful
@lifebylazy
@lifebylazy Жыл бұрын
Just gonna leave a comment here to help the algorithm
@dhruvsharma8839
@dhruvsharma8839 27 күн бұрын
good
@ahmadfitriyansah2937
@ahmadfitriyansah2937 9 ай бұрын
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?
@dhruvsharma8839
@dhruvsharma8839 28 күн бұрын
you can make extension function for string type
@favour2871
@favour2871 Жыл бұрын
nice
@androiddeveloper3343
@androiddeveloper3343 Жыл бұрын
❤❤❤
@nymexe
@nymexe Жыл бұрын
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?
@PhilippLackner
@PhilippLackner Жыл бұрын
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
@markfrelih
@markfrelih Жыл бұрын
@@PhilippLackner But the plural of person is people
@PhilippLackner
@PhilippLackner Жыл бұрын
@@markfrelih Oh lol, didn't know that haha
@ChrisAthanas
@ChrisAthanas Жыл бұрын
@@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.
@moisesvalera3597
@moisesvalera3597 Жыл бұрын
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.
@julitogadia
@julitogadia Ай бұрын
I also got same problem.
@moisesvalera3597
@moisesvalera3597 Ай бұрын
@@julitogadia You can investigate some concepts about Flow and Coroutines testing with Mockito, it's the way to go
@LucasYamato
@LucasYamato Жыл бұрын
Friend can not put caption on the videos of your course please ?
@favour2871
@favour2871 Жыл бұрын
philip do u find urself using xml from time to time? or just only compose
@PhilippLackner
@PhilippLackner Жыл бұрын
Not for new projects, but for older ones that still use it
@deepmashru8951
@deepmashru8951 Жыл бұрын
I wanna like to meet Beff Jezos..
@David-zb8br
@David-zb8br Жыл бұрын
Could you please do something similar to this but with sorting? by name and last name thx 😁
@PhilippLackner
@PhilippLackner Жыл бұрын
Add a sortedBy function after the filter 🤔
@CosmoVision1
@CosmoVision1 Жыл бұрын
Beff Jezoz
@olegleonov1310
@olegleonov1310 Жыл бұрын
`doesMatchSearchQuery` inside `Person` brakes SOLID principles. It's better to move this function to another class.
@PhilippLackner
@PhilippLackner Жыл бұрын
As I mentioned in the video to make a searchable interface 🤷🏼‍♂️
@alphacoder3822
@alphacoder3822 2 ай бұрын
bro are you searious? your courses are 33Lakh rupees for one course ? dude wtf
@PhilippLackner
@PhilippLackner 2 ай бұрын
@@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€.
@mohinithakkar2172
@mohinithakkar2172 4 күн бұрын
Hi, There. Can any one suggest how we can unit test it? @philipp
@yuhenteng4694
@yuhenteng4694 Жыл бұрын
everytime I want something to implement, and you will make a video about it hhhhh
@PhilippLackner
@PhilippLackner Жыл бұрын
I spy on you
@yuhenteng4694
@yuhenteng4694 Жыл бұрын
@@PhilippLackner yeah me too, on your left captain
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 76 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 13 МЛН
Самое неинтересное видео
00:32
Miracle
Рет қаралды 1,4 МЛН
Full Guide to Jetpack Compose Animations - Android Studio Tutorial
28:23
You're Collecting Your Flows Wrong In Compose | THIS Is Why
11:35
Philipp Lackner
Рет қаралды 28 М.
THIS Compose-State Mistake Leads to Problems In Your Code
7:58
Philipp Lackner
Рет қаралды 42 М.
Новостное приложение: с нуля до публикации в Google Play. Часть 1
2:09:40
Android Broadcast. Все об Андроид разработке
Рет қаралды 25 М.
Material 3 Search Bar with Jetpack Compose - Easy Tutorial
12:22
Stevdza-San
Рет қаралды 25 М.
Gestures in Jetpack Compose
31:33
Android Developers
Рет қаралды 23 М.
Bottom Navigation with Jetpack Compose
15:29
Stevdza-San
Рет қаралды 52 М.
Fastest Way to Become Android Developer in 2024 🔥
13:30
Easy Tuto
Рет қаралды 6 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 13 МЛН