Тёмный

Swipe gestures in Recycler View | Android 

Mafia Codes
Подписаться 44 тыс.
Просмотров 63 тыс.
50% 1

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

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

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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
@filipemartins2291
@filipemartins2291 4 года назад
Simple, effective and straight to the point! Brilliant video mate!
@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
@junigates
@junigates 4 года назад
bro you just teach in very simple and straight forward way,,,,great
@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
@expense-moneytracking6577
@expense-moneytracking6577 4 года назад
Best tutorial ! You've saved my day ! Good luck. @Android Developer from Cambodia
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share 😊
@yusufselimkaratas5163
@yusufselimkaratas5163 3 года назад
Best and the simplest way. Thanks.
@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
@SatyamGupta-nx4zj
@SatyamGupta-nx4zj 2 года назад
I'm Having problem importing RecyclerViewSwipeDecorator, What to do?
@anilkumaryadav8182
@anilkumaryadav8182 2 года назад
Thank you sir...
@rounakgupta5586
@rounakgupta5586 3 года назад
archive karne ke badd isko archine activity me kise show kare plz bato
@muhammadhashiruddin2913
@muhammadhashiruddin2913 3 года назад
Thanks for Nice video! with last line "bubye tata take care"
@avvjt
@avvjt 2 года назад
how can I save recycler🤐view item position after open the app???
@erinwolf1563
@erinwolf1563 3 года назад
great explanation.. THANK YOU
@techsharma3462
@techsharma3462 3 года назад
Super Explanation Sir
@andriibibik39
@andriibibik39 3 года назад
This library for swipe background is very cool for me! Thanks!
@rounakgupta5586
@rounakgupta5586 3 года назад
how to get this swiped content in another recyclerView plz make a video
@arcadudu
@arcadudu 3 года назад
Very useful tutorial. Many thanks!
@zx4-chimango
@zx4-chimango 2 года назад
Muchas Gracias hombre!!! (sire)
@josephmota358
@josephmota358 4 года назад
Thanks from Chile, it helped me so much
@ishankhandelwal2519
@ishankhandelwal2519 4 года назад
Thanks a lot sir. You are doing such a great job. I love your work.
@abr3410
@abr3410 3 года назад
Thanks for this video bro.
@deepamitchaudhary
@deepamitchaudhary 4 года назад
Great explanation... thank you so much
@fahrican9708
@fahrican9708 3 года назад
good explanation, thanks!
@coundreyjames_wangzdrey9124
@coundreyjames_wangzdrey9124 3 года назад
thx bruh
@rounakgupta5586
@rounakgupta5586 2 года назад
How to impliment half drag and get come back row plz help
@ent-hub2830
@ent-hub2830 5 лет назад
Great Tutorial...Hope you make more videos like this
@mafiacodes
@mafiacodes 5 лет назад
Subscribe like share 😊
@TechSE7EN
@TechSE7EN 4 года назад
Great Work! Thankyou!
@rittikghosh5198
@rittikghosh5198 Год назад
How to set textview in swipe up and down through onChild draw, I have tried but not succeed..
@nilanjanghosal8711
@nilanjanghosal8711 2 года назад
The library is not getting resolved: Cannot find symbol for RecyclerViewSwipeDecorator
@sreenivasancomalraju8448
@sreenivasancomalraju8448 4 года назад
Excellent session!
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share😊
@QuantyamCrypto
@QuantyamCrypto 4 года назад
AWESOME tutorial, thank you my friend
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share
@soud6872
@soud6872 4 года назад
thanks for your tutorial appreciated
@jishnunkrishnan5783
@jishnunkrishnan5783 3 года назад
Thank you
@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
@tonymukelabai1283
@tonymukelabai1283 2 года назад
Is there a way to add the archived files to a new activity?
@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
@kietnt98
@kietnt98 3 года назад
Thanks for your video. Do you have any way when click icon to remove the item?
@begmyratmammedov9357
@begmyratmammedov9357 2 года назад
great video
@mafiacodes
@mafiacodes 2 года назад
Subscribe like share
@h3w45
@h3w45 4 года назад
thank you so much for this clear explanation.
@jivanmainali1742
@jivanmainali1742 4 года назад
Why did you use archive and how to do without libraray
@mafiacodes
@mafiacodes 4 года назад
U can use anything apart from archieve
@pnarsar778
@pnarsar778 3 года назад
thank u so much.
@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.
@anpowersoftpowersoft
@anpowersoftpowersoft 4 года назад
Excellent videos please keep going
@tilisatyava
@tilisatyava 3 года назад
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.
@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?
@amitghosh3938
@amitghosh3938 4 года назад
how to make that swipelefticon large so that it is appropriate as per my cardviewholder
@rajm2671
@rajm2671 5 лет назад
Your videos are awesome.
@mafiacodes
@mafiacodes 5 лет назад
Subscribe like share and spread love 😊
@hissabis2068
@hissabis2068 4 года назад
Great, thank you bro. Continue.
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share ☺️
@gopinathder8765
@gopinathder8765 4 года назад
Very useful tutorial
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share
@caribary
@caribary 4 года назад
Very good video, Thanks!
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share
@vaibhavwadhwa3954
@vaibhavwadhwa3954 4 года назад
How can i implement swipe to reply feature in my chat application like in Whatsapp? Please help.
@sudhakarthila188
@sudhakarthila188 4 года назад
Super tutorial bro...👍
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share
@hiepphamdinh5855
@hiepphamdinh5855 3 года назад
link githun where?
@arunprabusiva409
@arunprabusiva409 4 года назад
Hi Sir, How to implement this inside a fragment please help
@millenniumchowdhury6395
@millenniumchowdhury6395 3 года назад
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 3 года назад
Use ur list
@AnhDuc-xx1kz
@AnhDuc-xx1kz 4 года назад
Great, thank you bro
@mafiacodes
@mafiacodes 4 года назад
You are welcome Subscribe like share...
@amitghosh3938
@amitghosh3938 4 года назад
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)
@TheAbhidugar
@TheAbhidugar 3 года назад
This feature is recently added in the Gmail app.
@ДимаКалалб-о8ш
@ДимаКалалб-о8ш 4 года назад
Thank you from Russia)
@mafiacodes
@mafiacodes 4 года назад
Subscribe like share 😊
@deepthoughtsradio
@deepthoughtsradio Год назад
We need this in Kotlin as well.
@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.
@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
@androiddevelopmenttutorial4847
@androiddevelopmenttutorial4847 4 года назад
please make video for pagnation in recyclerview in android studio
@mafiacodes
@mafiacodes 4 года назад
Will do. Subscribe like share😊
@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
@codingcosmos7010
@codingcosmos7010 4 года назад
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 4 года назад
Cannot help until I see the code?
@codingcosmos7010
@codingcosmos7010 4 года назад
@@mafiacodes Thanks a lot for replying sir.... tomorrow i will share the code...
@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 !
@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. :/
@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
@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...ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AkiltTv0CjA.html
@wearedoingsomething
@wearedoingsomething 3 года назад
Is there a Kotlin version of this?
@mafiacodes
@mafiacodes 3 года назад
not yet, but this can be easily converted to kotlin code
@vijay6877
@vijay6877 4 года назад
Liked. Sub. very informative video thanks.
@somebody1519
@somebody1519 5 лет назад
Will it be deleted for always?
@mafiacodes
@mafiacodes 5 лет назад
Yup, it will be if u delete it from the database, that is serving you api Subscribe like share 😊
@harischaudhery3502
@harischaudhery3502 4 года назад
movieList.remove() is not working
@harischaudhery3502
@harischaudhery3502 4 года назад
not finding remove() anywhere
@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
RecyclerView | Everything You Need to Know
25:07
Просмотров 136 тыс.
How to win a argument
9:28
Просмотров 559 тыс.
Recycler View with complete explanation | Android
24:56
How to Use View Binding With Recycler View Adapter
26:38
Navigation Component | Android Jetpack | Android
17:26
Expandable Recycler View | Android
12:28
Просмотров 45 тыс.