Тёмный

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

Philipp Lackner
Подписаться 183 тыс.
Просмотров 42 тыс.
50% 1

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

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

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 80   
@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 6 месяцев назад
but not working for my products get by api !!!
@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. 😄
@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
@mustafaammar551
@mustafaammar551 Год назад
Very cool video Wish you all the best 👍👍
@AlexKind1917
@AlexKind1917 Год назад
I looked for something similar. Thank you! Cool video!
@proandroiddevir
@proandroiddevir Год назад
as always The training was excellent and effective 🙏🙏🙏🙏🙏👏👏👏👏👏👏
@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! 🙏
@AndroidDeveloperTips
@AndroidDeveloperTips Год назад
Neat and right to the point as usual. Keep doing the great work. 👌
@PhilippLackner
@PhilippLackner Год назад
Thanks!
@PamontBahktar
@PamontBahktar Год назад
I really do love your tutorials Philipp, thanks so much
@mryup6100
@mryup6100 10 месяцев назад
This will be very useful in my app! Thank you Phillip!
@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. ❤
@sasha0elf
@sasha0elf Год назад
Thank you so much, Philipp!
@iamadetoye
@iamadetoye Год назад
Perfect!!! Appreciate you Phillip
@varshithbunny1310
@varshithbunny1310 23 дня назад
i liked your implementation can you extend this by handling dropdown repositioning when the list is huge like how autocompletetextview handles
@sevbanthebuyer
@sevbanthebuyer Год назад
Perfect ! Thank you.
@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
@alejandrogallego5419
@alejandrogallego5419 Год назад
Thanks a lot
@alejandrogallego5419
@alejandrogallego5419 Год назад
@Phillip this account is fake?
@mrjackson9137
@mrjackson9137 Год назад
Could you please make a video about SearchBar in Compose?
@sonnguyenphuc8142
@sonnguyenphuc8142 Год назад
thanks you so much i'm looking for this
@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 !
@PandaTop.
@PandaTop. Год назад
Thanks! Дякую :)
@SiddhantSingh-p7j
@SiddhantSingh-p7j 5 месяцев назад
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
@justmeagain9302
@justmeagain9302 2 месяца назад
I am often noticing 16.dp being a choice for spacing, is this a stylistic choice or is there theory behind it?
@AntonK-ql2ev
@AntonK-ql2ev 4 месяца назад
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.
@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:((
@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?
@Coldalecs
@Coldalecs 6 месяцев назад
Hot to make the Keyboard show the Search icon instead of Enter when inside the search field?
@EmanNollase
@EmanNollase Год назад
Nice awesome!!!
@lifebylazy
@lifebylazy Год назад
Just gonna leave a comment here to help the algorithm
@dhruvsharma8839
@dhruvsharma8839 Месяц назад
good
@ka61er
@ka61er Год назад
so helpful
@godeons
@godeons 7 месяцев назад
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
@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
@kevalkanpariya
@kevalkanpariya Год назад
Is it's good to use stateflow instead of mutableState(from compose API) specifically for this usecase
@julitogadia
@julitogadia 2 месяца назад
I wrote same code for searching but it is failing unit testing.
@ahmadfitriyansah2937
@ahmadfitriyansah2937 10 месяцев назад
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 Месяц назад
you can make extension function for string type
@abada-s
@abada-s Год назад
Why didn't you override the in operator or the contains function
@favour2871
@favour2871 Год назад
nice
@djpharaohoftime3200
@djpharaohoftime3200 Год назад
How would you do this with a database ( such as sqlite) so that the list can reload after filtering?
@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 2 месяца назад
I also got same problem.
@moisesvalera3597
@moisesvalera3597 2 месяца назад
@@julitogadia You can investigate some concepts about Flow and Coroutines testing with Mockito, it's the way to go
@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.
@androiddeveloper3343
@androiddeveloper3343 Год назад
❤❤❤
@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
@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 🤔
@LucasYamato
@LucasYamato Год назад
Friend can not put caption on the videos of your course please ?
@deepmashru8951
@deepmashru8951 Год назад
I wanna like to meet Beff Jezos..
@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 3 месяца назад
bro are you searious? your courses are 33Lakh rupees for one course ? dude wtf
@PhilippLackner
@PhilippLackner 3 месяца назад
@@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€.
@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
@mohinithakkar2172
@mohinithakkar2172 28 дней назад
Hi, There. Can any one suggest how we can unit test it? @philipp
Далее
Room в Jetpack Compose | Android Studio + Kotlin
1:05:54
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 226 тыс.
Учёные из Тринидад и Тобаго
00:23
Тренд Котик по очереди
00:10
Просмотров 220 тыс.
Gestures in Jetpack Compose
31:33
Просмотров 24 тыс.
5 Kotlin Coroutine Secrets I Wish I Knew Earlier
24:23
Search Widget/App Bar with Jetpack Compose
20:14
Просмотров 18 тыс.
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 226 тыс.