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

  Рет қаралды 44,768

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 79
@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 9 ай бұрын
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. 😄
@rpitpatel1004
@rpitpatel1004 Жыл бұрын
that's great video. No one actually doing live coding and explaining these days. Thank you @Philipp
@coderstubechannel
@coderstubechannel Жыл бұрын
Super tutorial for us programmers 💪
@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 👍👍
@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! 🙏
@mryup6100
@mryup6100 Жыл бұрын
This will be very useful in my app! Thank you Phillip!
@PamontBahktar
@PamontBahktar Жыл бұрын
I really do love your tutorials Philipp, thanks so much
@AndroidDeveloperTips
@AndroidDeveloperTips Жыл бұрын
Neat and right to the point as usual. Keep doing the great work. 👌
@PhilippLackner
@PhilippLackner Жыл бұрын
Thanks!
@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
@varshithbunny1310
@varshithbunny1310 3 ай бұрын
i liked your implementation can you extend this by handling dropdown repositioning when the list is huge like how autocompletetextview handles
@sasha0elf
@sasha0elf Жыл бұрын
Thank you so much, Philipp!
@iamadetoye
@iamadetoye Жыл бұрын
Perfect!!! Appreciate you Phillip
@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:((
@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 🙏🙏🙏🙏🙏👏👏👏👏👏👏
@mrjackson9137
@mrjackson9137 Жыл бұрын
Could you please make a video about SearchBar in Compose?
@AntonK-ql2ev
@AntonK-ql2ev 7 ай бұрын
Philipp, thanks for the lesson, but how can get data from a file to listof?
@Coldalecs
@Coldalecs 8 ай бұрын
Hot to make the Keyboard show the Search icon instead of Enter when inside the search field?
@sevbanthebuyer
@sevbanthebuyer Жыл бұрын
Perfect ! Thank you.
@SiddhantSingh-p7j
@SiddhantSingh-p7j 8 ай бұрын
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
@maksBan1919
@maksBan1919 7 ай бұрын
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
@ahmadfitriyansah2937
@ahmadfitriyansah2937 Жыл бұрын
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 4 ай бұрын
you can make extension function for string type
@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
@sonnguyenphuc8142
@sonnguyenphuc8142 Жыл бұрын
thanks you so much i'm looking for this
@kevalkanpariya
@kevalkanpariya Жыл бұрын
Is it's good to use stateflow instead of mutableState(from compose API) specifically for this usecase
@djpharaohoftime3200
@djpharaohoftime3200 Жыл бұрын
How would you do this with a database ( such as sqlite) so that the list can reload after filtering?
@alejandrogallego5419
@alejandrogallego5419 Жыл бұрын
Thanks a lot
@alejandrogallego5419
@alejandrogallego5419 Жыл бұрын
@Phillip this account is fake?
@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?
@somdatatechnology233
@somdatatechnology233 Жыл бұрын
Mr philipp, please make same lesson with Retrofit and paging 3? i need it
@antpr2
@antpr2 Жыл бұрын
Today I learnt that there about the .update{} function, I've always been using .value !
@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.
@julitogadia
@julitogadia 5 ай бұрын
I wrote same code for searching but it is failing unit testing.
@ka61er
@ka61er Жыл бұрын
so helpful
@godeons
@godeons 10 ай бұрын
Point me to your beginners guide on jetpack compose please
@abada-s
@abada-s Жыл бұрын
Why didn't you override the in operator or the contains function
@lifebylazy
@lifebylazy Жыл бұрын
Just gonna leave a comment here to help the algorithm
@dhruvsharma8839
@dhruvsharma8839 4 ай бұрын
good
@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 5 ай бұрын
I also got same problem.
@moisesvalera3597
@moisesvalera3597 5 ай бұрын
@@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.
@EmanNollase
@EmanNollase Жыл бұрын
Nice awesome!!!
@PandaTop.
@PandaTop. Жыл бұрын
Thanks! Дякую :)
@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
@favour2871
@favour2871 Жыл бұрын
nice
@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 ?
@ak_xda
@ak_xda Жыл бұрын
❤❤❤
@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 5 ай бұрын
bro are you searious? your courses are 33Lakh rupees for one course ? dude wtf
@PhilippLackner
@PhilippLackner 5 ай бұрын
@@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 3 ай бұрын
Hi, There. Can any one suggest how we can unit test it? @philipp
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 99 М.
You're Collecting Your Flows Wrong In Compose | THIS Is Why
11:35
Philipp Lackner
Рет қаралды 31 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
The ULTIMATE Guide to Sharing Data Between Screens in Jetpack Compose
24:08
Kotlin Multiplatform vs Flutter: Which should we use?
4:42
Kei Fujikawa
Рет қаралды 27 М.
THIS Compose-State Mistake Leads to Problems In Your Code
7:58
Philipp Lackner
Рет қаралды 46 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 137 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 83 М.
Material 3 Search Bar with Jetpack Compose - Easy Tutorial
12:22
Stevdza-San
Рет қаралды 28 М.