High quality Android programming courses: In this video I show you how to setup a RecyclerView on Android using Kotlin.
Nguồn:https://u-os.org/
Xem thêm Bài Viết:
- Hướng dẫn cách lắp anten ngoài trời đúng kỹ thuật, thu sóng khỏe nhất
- Giải đáp bí ẩn Xamarin là gì? Ưu và nhược điểm khi sử dụng Xamarin
- Tuyệt chiêu sửa lỗi window photo viewer can’t open this picture because
- Bộ nhớ đệm là gì? Có nên xóa bộ nhớ đệm trên thiết bị không?
- Bật mí 3 cách chụp ảnh bằng máy tính win 7 dễ như ăn kẹo
36 Comments
Hello, great videos, I want to see more videos like this. Many Thanks
That's one of the most COOL tutorials I have ever seen in my life. You are awesome
6:27 you discuss for about a full minute why your `image` field is declared as a `String`. This is a case where the naming of variables is very important and useful. Call the field `imageURL`; this makes it clear to all, even deep in the middle of some chunk of code, that the variable points to an image somewhere and is not actually the (binary) image file.
Excellent tutorial – you and your friend over at 'Coding in Flow' are my go to guys for proper tutorials, with the explanations where needed – thank you for the brilliant content!.. Now, just need to hook this up to my Firestore Database, through my Repository and ViewModel and I'll be getting somewhere!! (ahem!) 🙂
+1 for adding onClick to this RecyclerView!
Thank you very much for all these videos, they're really helpful!
bought you membership but unfortunately, most of them are in Java and also few of the API's are not working, but highly recommend if someone interested in JAVa
thank you this, help me alot
my picture doesn't appear, do you know what the problem is?
Do you teach how to click inside of the card view?? Really need it xD
Thanks Mitch. I'm really thankful for all your tutorials. Your form of explaining these complicated topics is wonderful.
I think it would be more descriptive to call your `image` variable, `imageURL`.
HUGE HUGE THANK YOU! Really good tutorial, maybe the best one i saw from Kotlin tutorials. Keep up the good work mate!
Nice explanation for Beginner like me Thank u !!
Thank you <3
I have problems when i have to put the (parent.context), it gives an error, how can i fix it?
I loved your video… Make more.. Beginners like me.. Recommend this post too https://androidride.com/recyclerview-android-simple-tutorial-listview-checkbox-example/
ty mitch for tutorial – and i have 2 question
1 – why use topSpacingItemDecoration? Why not use the xml layer margin
2- The difference between using this code
class BlogViewHolder constructor(itemView: View) : RecyclerView.ViewHolder(itemView)
with
class BlogViewHolder (val itemView: View) : RecyclerView.ViewHolder(view)
@21:02 Line 30 – Why the sad face?
You saved my nerves, thanks bud
good day, i am getting this error, Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
what should i do?please help
Hola, muy buen video, estoy aprendiendo kotlin y este tutorial ha sido el que mas me ha servidor :),,,, tengo una consulta por cierto,,, estuve haciendo unos cambios en el data source para poder obtener la data desde internet y cuando lo ejecuto no pasa nada,, sin embargo cuando le pongo un delay de 2 segundos carga perfecto con la info de internet,, supongo que el problema va por el tema sincrono y asincrono,, entonces,,,sabes alguna forma de hacerlo asincrono para que cargue en background y luego presente los resultados?,, o por ultimo bloquear la app hasta que espere el resultado del GET.
Thank you very much for the tutorial. Keep up the good work.
Hi Mitch, first thank you for your help through all your videos !
Second, could you make a course about Dual Panel fragments in landscape ?
– RecyclerView in left fragment
– ItemDetail in right fragement
So far I didn't find out how to pass data from my recyclerview item to my fragment detail…
Thanks 🙂
I am unable to upload images using Glide in this tutorial. Anybody can help?
W/Glide: Load failed for https://raw.githubusercontent.com/mitchtabian/Blog-Images/master/digital_ocean.png with size [1080×1080]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 cause:
java.net.UnknownHostException(Unable to resolve host "raw.githubusercontent.com": No address associated with hostname)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
There was 1 cause:
java.net.UnknownHostException(Unable to resolve host "raw.githubusercontent.com": No address associated with hostname)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
There was 1 cause:
java.net.UnknownHostException(Unable to resolve host "raw.githubusercontent.com": No address associated with hostname)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.net.UnknownHostException: Unable to resolve host "raw.githubusercontent.com": No address associated with hostname
I/Glide: Root cause (1 of 1)
This was very well explained, thanks. I want to create a recyclerview that uses two separate lists / types of data where one set of data follows the other on the same screen. I can combine them into a single list containing the two different data types, but I have been struggling to convert them to display in the two different views . A video covering this would be a godsend to me 🙂
How would the code change if the image was in the drawable folder?
the data should be coming from an URL, not STATIC'
the "image pointer" almost looks like a URL
I have a small problem the item click listener code I don't know where should l put it and I want if I clicked on the item number 1 I want the app intent me to another layout and so on on the other items and I don't know how to lead to the index to do that I hope you help me in this problem
Thank you! Helped me a lot 🙂
Looking forward to more Kotlin! 😀
recycler is working without notifyDataSetChanged in submitList method?
@codingWitMitch it would be awesome if you post some thing that show how we can wire different views like recycler-views and recycler-view list menu with bottom navigationbar/ or inside fragments
Why didn't you promote me
Select recyclerView item and take information from that to next activity/fragments. Also material design selection. This tutorial is awesome.
Great video! So, I am facing some problems using MediatorLiveData, if you have time, would be great see a video from you about this, thank you my friend
Great job on the Video Mitch, i have watched many your Java videos, you do a great job , I look forward to your Kotlin Videos as a beginner learning. I would like to see recyclerview with numbers and dates from a user and some adding and subtracting with a recyclerview like a balance from numbers either being added or subtracted.