No video

Swipe gestures in Recycler View | Android

  Рет қаралды 62,260

Mafia Codes

Mafia Codes

5 жыл бұрын

In this video you will learn how to handle #Swipe gestures inside a recycler view with undo functionality. You will also learn how to add in a background view when you swipe a row inside recycler view.
🚀Deploy NodeJs app: zeet.co/r/your...
(One FREE project forever 😘)
In 60 seconds • How to Deploy a NodeJs...
FREE $100 credit @Digital Ocean: m.do.co/c/3208...
Patreon: / trulymittal
Subscribe: www.youtube.co...
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/g...
#RecyclerView (Basic Setup): • Recycler View with com...
Github(Tutorial):
RecyclerView (Pull to refresh): • Pull to Refresh in Rec...
RecyclerView (onClick using Interface): • RecyclerView item Clic...
github.com/tru...
RecyclerViewSwipeDecorator(Github): github.com/xab...
Material Dependency: material.io/de...
RecyclerView: developer.andr...
RecyclerView(dependency): developer.andr...
---------------
More useful videos
---------------
#ViewModel: • View Model | Live Data...
#Retrofit: • RETROFIT Tutorial (v 2...
#WorkManager: • Work Manager | Android...
#KeyframeAnimations: • Keyframe Animations wi...
#CollapsingToolbar Layout: • Collapsing Toolbar Lay...
#BottomNavigation View: • Bottom Navigation View...
#NavigationComponent: • Navigation Component |...
#NightMode: • Night Mode | Dark Mode...
#ButterKnife: • Butter Knife | Field a...
SplashScreen: • Splash screen | Launch...
Singletons: • Singletons | What When...
---------------
What I use
---------------
Mouse: amzn.to/2O9RJtu
Keyboard: amzn.to/2qxajCU
Keyboard 2: amzn.to/2XDWH4X
Monitor: amzn.to/2pDg7dH
Processor: amzn.to/347WWIb
RAM: amzn.to/2QEkUqw
Graphics: amzn.to/33aBrF4
Microphone: amzn.to/2DabdI9
#yoursTruly #tutorial #how-to #android

Пікірлер: 118
@handsomeman5098
@handsomeman5098 3 жыл бұрын
yoursTRULY : "that's also pretty SIMPLE"... me : (IN MY MIND) OMG... his explanation is very GOOD ..). makes me like an expert on this stuff. I want to be like you. Thank you... :)
@mafiacodes
@mafiacodes 3 жыл бұрын
Subscribe like share
@aasheesh6001
@aasheesh6001 Жыл бұрын
Bro made the best tutorial of swipe gesture and think we don't notice.
@AB-db5lo
@AB-db5lo 3 жыл бұрын
For any one having a trouble importing the "RecyclerViewSwipeDecorator" , try to use the previous versions 1.2.3 in github. Worked for me
@junigates
@junigates 4 жыл бұрын
bro you just teach in very simple and straight forward way,,,,great
@filipemartins2291
@filipemartins2291 4 жыл бұрын
Simple, effective and straight to the point! Brilliant video mate!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@muhammadhashiruddin2913
@muhammadhashiruddin2913 3 жыл бұрын
Thanks for Nice video! with last line "bubye tata take care"
@expense-moneytracking6577
@expense-moneytracking6577 4 жыл бұрын
Best tutorial ! You've saved my day ! Good luck. @Android Developer from Cambodia
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share 😊
@dailyseedpodcast
@dailyseedpodcast 3 жыл бұрын
Hello, can't import class for RecyclerView Swipe Decorator. I've this error popping up "Cannot resolve symbol 'xabaras'", why is it so
@slash0t5
@slash0t5 4 жыл бұрын
This is an awesome video. The only part I was disappointed with is that I was hoping to build the background handling from scratch. But he is right. It is complex and difficult to get rid of bugs.
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@yusufselimkaratas5163
@yusufselimkaratas5163 3 жыл бұрын
Best and the simplest way. Thanks.
@anilkumaryadav8182
@anilkumaryadav8182 2 жыл бұрын
Thank you sir...
@MdARahim
@MdARahim 4 жыл бұрын
Great Tutorial. Your video deserves more views. Keep up the good work. Your video will blow up one day!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@zx4-chimango
@zx4-chimango 2 жыл бұрын
Muchas Gracias hombre!!! (sire)
@ishankhandelwal2519
@ishankhandelwal2519 4 жыл бұрын
Thanks a lot sir. You are doing such a great job. I love your work.
@erinwolf1563
@erinwolf1563 3 жыл бұрын
great explanation.. THANK YOU
@abr3410
@abr3410 3 жыл бұрын
Thanks for this video bro.
@arcadudu
@arcadudu 3 жыл бұрын
Very useful tutorial. Many thanks!
@techsharma3462
@techsharma3462 2 жыл бұрын
Super Explanation Sir
@andriibibik39
@andriibibik39 3 жыл бұрын
This library for swipe background is very cool for me! Thanks!
@josephmota358
@josephmota358 4 жыл бұрын
Thanks from Chile, it helped me so much
@deepamitchaudhary
@deepamitchaudhary 4 жыл бұрын
Great explanation... thank you so much
@fahrican9708
@fahrican9708 3 жыл бұрын
good explanation, thanks!
@ent-hub2830
@ent-hub2830 4 жыл бұрын
Great Tutorial...Hope you make more videos like this
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share 😊
@jishnunkrishnan5783
@jishnunkrishnan5783 3 жыл бұрын
Thank you
@coundreyjames_wangzdrey9124
@coundreyjames_wangzdrey9124 3 жыл бұрын
thx bruh
@soud6872
@soud6872 4 жыл бұрын
thanks for your tutorial appreciated
@QuantyamCrypto
@QuantyamCrypto 4 жыл бұрын
AWESOME tutorial, thank you my friend
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@TechSE7EN
@TechSE7EN 4 жыл бұрын
Great Work! Thankyou!
@SatyamGupta-nx4zj
@SatyamGupta-nx4zj 2 жыл бұрын
I'm Having problem importing RecyclerViewSwipeDecorator, What to do?
@h3w45
@h3w45 4 жыл бұрын
thank you so much for this clear explanation.
@pnarsar778
@pnarsar778 3 жыл бұрын
thank u so much.
@sreenivasancomalraju8448
@sreenivasancomalraju8448 4 жыл бұрын
Excellent session!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share😊
@begmyratmammedov9357
@begmyratmammedov9357 2 жыл бұрын
great video
@mafiacodes
@mafiacodes 2 жыл бұрын
Subscribe like share
@anpowersoftpowersoft
@anpowersoftpowersoft 4 жыл бұрын
Excellent videos please keep going
@rounakgupta5586
@rounakgupta5586 2 жыл бұрын
archive karne ke badd isko archine activity me kise show kare plz bato
@rounakgupta5586
@rounakgupta5586 2 жыл бұрын
how to get this swiped content in another recyclerView plz make a video
@avvjt
@avvjt 2 жыл бұрын
how can I save recycler🤐view item position after open the app???
@rajm2671
@rajm2671 5 жыл бұрын
Your videos are awesome.
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share and spread love 😊
@caribary
@caribary 4 жыл бұрын
Very good video, Thanks!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@hissabis2068
@hissabis2068 4 жыл бұрын
Great, thank you bro. Continue.
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share ☺️
@rounakgupta5586
@rounakgupta5586 2 жыл бұрын
How to impliment half drag and get come back row plz help
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
you have great skills to deliver your content in a manner full way. :) how can I implement swipe gesture with a delete button. . . I mean I have to delete an item with button. it only swipes a little bit from its origin and shows a button to delete, Edit, etc ??? Thanks in advance :P
@gopinathder8765
@gopinathder8765 4 жыл бұрын
Very useful tutorial
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@sudhakarthila188
@sudhakarthila188 4 жыл бұрын
Super tutorial bro...👍
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@rittikghosh5198
@rittikghosh5198 Жыл бұрын
How to set textview in swipe up and down through onChild draw, I have tried but not succeed..
@AnhDuc-xx1kz
@AnhDuc-xx1kz 4 жыл бұрын
Great, thank you bro
@mafiacodes
@mafiacodes 4 жыл бұрын
You are welcome Subscribe like share...
@jivanmainali1742
@jivanmainali1742 4 жыл бұрын
Why did you use archive and how to do without libraray
@mafiacodes
@mafiacodes 4 жыл бұрын
U can use anything apart from archieve
@kietnt98
@kietnt98 3 жыл бұрын
Thanks for your video. Do you have any way when click icon to remove the item?
@tonymukelabai1283
@tonymukelabai1283 Жыл бұрын
Is there a way to add the archived files to a new activity?
@chiragredij1734
@chiragredij1734 Жыл бұрын
What If I want to implement certain functionality depending on the status of the Item... I also want to include delete as a functionality. I implemented a function to checkstatus(boolean) in the adapter but when I delete and item the function gives me index outoff bound error.
@nilanjanghosal8711
@nilanjanghosal8711 2 жыл бұрын
The library is not getting resolved: Cannot find symbol for RecyclerViewSwipeDecorator
@amitghosh3938
@amitghosh3938 4 жыл бұрын
how to make that swipelefticon large so that it is appropriate as per my cardviewholder
@millenniumchowdhury6395
@millenniumchowdhury6395 3 жыл бұрын
Sir what will happen if someone delete all the rpws by swiping ?? Can we show user some msg. If all rows are deleted
@vladopris1172
@vladopris1172 3 жыл бұрын
In my app the background with the delete or archive icon remains even if the item is removed, only after a refresh the background is removed as well. How to solve this?
@user-gu3kj6gy8q
@user-gu3kj6gy8q 4 жыл бұрын
Thank you from Russia)
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share 😊
@tilisatyava
@tilisatyava 2 жыл бұрын
Sir Thanks For The Tutorial. I don't need the Swiped card view to be removed from list which means if I swipe left or right the function should be triggered but the item has to come to Same place automatically. Is there any options Plz guied Tq.
@vijay6877
@vijay6877 3 жыл бұрын
Liked. Sub. very informative video thanks.
@TheAbhidugar
@TheAbhidugar 3 жыл бұрын
This feature is recently added in the Gmail app.
@vaibhavwadhwa3954
@vaibhavwadhwa3954 4 жыл бұрын
How can i implement swipe to reply feature in my chat application like in Whatsapp? Please help.
@arunprabusiva409
@arunprabusiva409 4 жыл бұрын
Hi Sir, How to implement this inside a fragment please help
@deepthoughtsradio
@deepthoughtsradio Жыл бұрын
We need this in Kotlin as well.
@amitghosh3938
@amitghosh3938 3 жыл бұрын
Sir how to make a begining tutorial to show user that he needs to swipe (in case he don't know whether he has to swipe or not)
@millenniumchowdhury6395
@millenniumchowdhury6395 2 жыл бұрын
sir how to detect wheather the last item of the recycler view is swiped or not.. like i want to display a message on successfully swiping the last item
@mafiacodes
@mafiacodes 2 жыл бұрын
Use ur list
@androiddevelopmenttutorial4847
@androiddevelopmenttutorial4847 4 жыл бұрын
please make video for pagnation in recyclerview in android studio
@mafiacodes
@mafiacodes 4 жыл бұрын
Will do. Subscribe like share😊
@KitettyKat
@KitettyKat 3 жыл бұрын
I'm wondering how this can be combined with the "Section View/Grouped Recycler View" that you have in another video. I have sections and each section has its own list of items. I would like to swipe to delete items on each of the lists.
@mafiacodes
@mafiacodes 3 жыл бұрын
U have to do it recursively
@jjb5142
@jjb5142 4 жыл бұрын
How are you brother? May please tell how to archive text and pass it to another fragment, I'm looking forward to seeing such a tutorial.
@mafiacodes
@mafiacodes 4 жыл бұрын
Archiving was an example, if u want data in different fragments the use ViewModel as it lasts for the Lifecycle of the activity and every fragment can use it.
@hiepphamdinh5855
@hiepphamdinh5855 3 жыл бұрын
link githun where?
@sorinaion1365
@sorinaion1365 4 жыл бұрын
Hello ! Could you pease tell me how do you know what libraries to use, when you need something new ? Is there kind of a "general list" with all the libraries available in Android ? Thank you !
@mafiacodes
@mafiacodes 4 жыл бұрын
Hi, it’s just like you google search ur requirements and you can get a list. Subscribe like share 😊
@sorinaion1365
@sorinaion1365 4 жыл бұрын
@@mafiacodes, Thank you ! Chances are to take some wrong informations from google search. There should be a safer way. Also, those guys from the "google search" , how do they know what libraries to choose ? Thank you !
@codingcosmos7010
@codingcosmos7010 3 жыл бұрын
When i am using firebase in delete & undo then list views are not showing smooth animation on getting deleted.... and when i commented those lines of firebase retrieving & deleting then it is working good & showing smooth animation on removing item from recyclerview.... What could be the problem...?? Kindly reply
@mafiacodes
@mafiacodes 3 жыл бұрын
Cannot help until I see the code?
@codingcosmos7010
@codingcosmos7010 3 жыл бұрын
@@mafiacodes Thanks a lot for replying sir.... tomorrow i will share the code...
@amitghosh3938
@amitghosh3938 4 жыл бұрын
Can we use swipedecorator for commercial purpose ? (if not how to give credits I don't know)
@mafiacodes
@mafiacodes 4 жыл бұрын
Yes u can, coz it’s open source
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
i have a model instance (address,phoneNo etc) in a cardview, not a String as you have in your app tutorial how can i use snack bar to undo delete item?
@mafiacodes
@mafiacodes 4 жыл бұрын
As I have used string to store the value, in ur case u can use the model object to store the object.
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
@@mafiacodes i tried but it required "CharSequence" not an object after pass recyclerview in Snackbar.make :(
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
this is my code //object AddressesModel deletedAddress; " int position = viewHolder.getAdapterPosition(); switch (direction){ case ItemTouchHelper.LEFT: deletedAddress = addressArrayList.get(position); addressArrayList.remove(position); addressAdapter.notifyItemRemoved(position); Snackbar.make(addressRecyclerView, (CharSequence) deletedAddress,Snackbar.LENGTH_LONG) .setAction("undo", new View.OnClickListener() { @Override public void onClick(View v) { addressArrayList.add(position,deletedAddress); addressAdapter.notifyItemInserted(position); } }); break; case ItemTouchHelper.RIGHT: break;
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
snackbar.make() second parameter not taking my object reference. . .it convert m object to charSequence as u can se above. :/
@harishmani8245
@harishmani8245 4 жыл бұрын
Bro i have a receive an error is that Manifest merge failed Sdkversion 14 cannot be smaller then 15 declared in library how to overcome this bro.
@mafiacodes
@mafiacodes 4 жыл бұрын
Set ur minsdk to 15 in manifest file
@towuhidekoli9480
@towuhidekoli9480 4 жыл бұрын
please explain this in recyclerview item click listener please. last 7 days trying this but.this youtube no.not any videio this type. can't find any videio.please do this @Override public void onClick(View v) { final Intent intent; switch (getAdapterPostion()){ case 0: intent = new Intent(context, FirstActivity.class); break; case 1: intent = new Intent(context, SecondActivity.class); break; ... default: intent = new Intent(context, DefaultActivity.class); break; } context.startActivity(intent); }
@mafiacodes
@mafiacodes 4 жыл бұрын
watch this video...where I have explained the exact same thing...kzbin.info/www/bejne/d5zMnaeKq5V2oKM
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
I had to swipe and then press a button and then perform delete ??? so what I need to do? ASAP
@mafiacodes
@mafiacodes 4 жыл бұрын
That’s what is explained here.
@ahsansyed4146
@ahsansyed4146 4 жыл бұрын
@@mafiacodes you just swiped and item delete i want to swipe item and when user tab on that button then item should be deleted. . . ye chata hun sir m
@mafiacodes
@mafiacodes 4 жыл бұрын
U need to do a custom implementation of swipe to delete
@harischaudhery3502
@harischaudhery3502 4 жыл бұрын
movieList.remove() is not working
@harischaudhery3502
@harischaudhery3502 4 жыл бұрын
not finding remove() anywhere
@somebody1519
@somebody1519 4 жыл бұрын
Will it be deleted for always?
@mafiacodes
@mafiacodes 4 жыл бұрын
Yup, it will be if u delete it from the database, that is serving you api Subscribe like share 😊
@wearedoingsomething
@wearedoingsomething 3 жыл бұрын
Is there a Kotlin version of this?
@mafiacodes
@mafiacodes 3 жыл бұрын
not yet, but this can be easily converted to kotlin code
@Citizen7777777
@Citizen7777777 4 жыл бұрын
I can’t understand what language he speaks ?!?!
@sudhakarthila188
@sudhakarthila188 4 жыл бұрын
English
Drag and drop Reorder in Recycler View | Android
7:05
Mafia Codes
Рет қаралды 32 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 133 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 1,4 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 35 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 128 МЛН
Фоновая работа в Android: Service и WorkManager // Курс «Android Developer. Professional»
1:41:26
Recycler View with complete explanation | Android
24:56
Mafia Codes
Рет қаралды 41 М.
Memory Leaks on Android
18:36
CodingWithMitch
Рет қаралды 56 М.
Filter RecyclerView using Search View | Android
11:54
Mafia Codes
Рет қаралды 117 М.
Highlight, Move, and Swipe RecyclerView with ItemTouchHelper
21:03
CodingWithMitch
Рет қаралды 26 М.
You won't BELIEVE what I just did with TanStack's React Tables!
35:58
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 1,4 МЛН