Android Kotlin: ListView Custom XML Views for Rows (Ep 2)
Вставка
- Опубліковано 25 лип 2024
- Knowing how to use the XML Editor for rendering out rows in your lists is very useful for Android Development. Today we look at how to utilize this tool, along with LayoutInflater to get our custom rows. We also utilize the position variable to determine what type of element goes into each row. Enjoy.
ListView Intro Episode 1: • Android Kotlin: Essent...
Instagram Firebase Course
www.letsbuildthatapp.com/cour...
Facebook Group
/ 1240636442694543
iOS Basic Training Course
www.letsbuildthatapp.com/basi...
Completed Source Code
www.letsbuildthatapp.com/cour...
Follow me on Twitter: / buildthatapp
I learned more in this video and the previous one than I have in 5 weeks of class. thank you
Keep this Kotlin series up! Your way of explaining things is great!
I can only imagine that you know how much good you are doing in the world by sharing this. Many many thanks from me.
Even after 4 years this is the best video on this topic!
Thank you for these video series Brian. Your videos about Android dev really helped me clarify the vision about how Layouts really do work. Keep rockin on!
I have been developing android apps for about 2 years now and never fully understood listView (Sad I know). These videos have cleared averything up and filled in the spots that I was missing or didn't understand. Everything is so well organized and well explained, you definitely earned this sub. Thanks again and look forward to exploring your channel further.
Nice teaching. Great to see there is a progression on Android tutorials from you. Keep it up. It will be good to see you doing Android with Firebase in the future. I will definitely purchase it!
Man, your videos are awesome! You're very clear explaining. An excellent teacher! Keep it going! Thanks a lot!
I appreciate the effort you're putting into these videos. I'm used to making adapters for a ListView using java. So it's nice to see how to use Kotlin to carry out the same process, and to be honest, it does seem easier.
Very clear lesson. Thanks for these videos, they are really happy to get started with Android development.
Great video! Also, at 8:58 you mention the views move when you change the id. Just in case no one told you, it's because there's a constraint below that's referencing the id (that you just changed). Since it can't find that id, the view jumps around. Just update the constraint with the updated id, and you're all set. Thanks again!
Congrats, awsome tutorial: very good pace and explanatory skills!
These are awesome I'm loving them keep it up!
Very nice!! It's awesome the way you explain it! Really helpful. Just one thing: in kotlin you don't have to find objects view by id like in Java. Just use the same id name given in the xml file.
For example:
rowMain.position_textview.text = "Some Text"
Thank you for all, master!
It's so weird watching Brian setting up the UI with some UI tools :D
Thank so much for being the best teacher!!
a tutorial that you never get bored.
Yes you are back :-) :-)
More kotlin, plz. Just like your swift tutorials are these the best out there.
Great content. I learned a lot from you. Thanks
Dude!!You're awesome
You make it look so easy
Thanks a lot :D
hopefully you do more of these videos =), thx a lot !!
High quality Tutorial. Thanks! 😊
Great videos man! Thnks for your clear pronunciation.
You are wonderful. Keep up the good work. 2017 and you explained everything futuristic-ally
Congratulations! I've been looking for something like that and It's hard to find. We (noobs) need practice lessons of each component, after put all in one APP, but the lessons I found is very complicated and in the end, I don't know where modify the code to meet my need. Tks a lot
I liked the part with the string interpolation. Pretty cool stuff
Great video, thanks for sharing Brian :-)
Hi Brian.
Thanks for tutorial.
Just one tip - if you change ID of the view in the top right corner in "Design" mode of xml file or you hit right click and "Refactor" on the id field of your view and change it that way, AS will perform changes automatically and you won't have to redraw your constraints again.
thanks Brian for this video i really learn a lot of thing about listView
Desde Peru!, excelente tutorial! me ha servido de mucho, gracias!
Terrific video, Thank you very much
Nice video Brian, thanks :)
Cool stuffs.
Awesome! I still would like to know how you created the bottom row that slides horizontally. Is there a video describing it?
Thank you!!!! It's useful to me
Awsome explanation
Great Video 👍👏👏
thank for awesome video :)
good video!!Your explanation is very good.
I have a question: How can i start a event after select a item of the ListView? I want to pass my item selected to a label out of the listview i tried to use OnItemClickListener but i couldnt access the list in order to get the information of the item, from this function.
Good Job thanks for the great tutorial ❤️
Please can you make a tutorial about Recycler View?
You should make an audio book. Your voice is soothing.
I wonder if there is a way to filter/search the items in the list view. Great video btw.
you are always my savior
You shall be saved.
:D
Hey man nice tuto can u make a suite with a parse of JSON file to the list view ?
Really great work I subscibre rigth now
Brian, great to have you delving into Android development too (a beginner in this platform here.) Just a bit adjustment on the production area if any: If you watch these Android dev videos via iPhone (on the go in my case) Font is too small and can barely see the code. Maybe that "Dracula theme " which I love too has something to do , idk but you get it
Yeah, still getting used to all of the Android Studio UI while recording. I've been making small changes each video as I understand more and more where I want to take the viewers of these videos.
Thank You Sir..............f or this listview.❤❤❤❤❤❤❤❤❤❤
Is this the last episode of this series? I can't find Ep3
nice !
good jobs
Nice! Do you have any plan to teach Realm?
Can I ask, how do you manage to upload videos so consistently with having a full time job?
I teach online fulltime, youtube is a big part of it.
There a way to do this with multiple tabs ?
Why LayoutInflater only cuts and paste the two TextViews from row_main.xml file and not the whole file. Because then the size of each row in the list view in the main activity is much larger. Please explain this :(
thanks Brian
.for changing id for a view it is better to do that in right-properties panel, not in xml , and a message appear to fix the layout .
Yeah, I'm a lot more used to editing the xml files directly.
Where can I find ep 3?
How can we pass this data to new activity using onclicklistner
How would you start a new activity when clicking an item in the list
Did you find the answer?
I just wish you added some sort of on click event, but otherwise good job
hello do you have a video teach
how to put the image on the listview?
Yeah just search the channel for android tutorials and you’ll find it.
@@LetsBuildThatApp thanks
How did you put that grey background color to alternative list items???
index % 2
Lets Build That App
Thank you!!
Please do the Firebase Chat app for Android I'm sure many of us want that
I'm thinking of putting out a course on my website for this.
Can you show us on Kotlin parsing Json (like in swift,use URLSession. for Kotlin which Api is used for Parsing json?) Hope you can show us an example using Kotlin to parse Json and show data in ListView with inflater. Thanks.
There's already a video on building out the UA-cam app with Kotlin that performs JSON parsing using GSON and OKHttp client.
new to Kotlin and confused by which library to use for JSon as there are retrofit2,rxjava,rxandroid andOkHttp! In Swift, use URLSession as 3rdparty may break when there r changes. So, which library to use for kotlin to parse json? hope your video will provide useful guideline. Thanks
I recommend checking out my JSON parsing kotlin video here: ua-cam.com/video/53BsyxwSBJk/v-deo.html
Can you do quick video on AdvanceWebview ? Please I converted my website to an app but I cant download any file like video and music. Please help me how to do that. Thnak you so much
That's great, how would you like the solution presented?
I am using this > github.com/delight-im/Android-AdvancedWebView
problem is when I click on download button on my website it doesn't do anything
I am having error on "listView.adapter = MyCustomAdapter(this)"
how to solve..??
What is the error in stacktrace ?
error in adapter
but its solved.
i just put this code"val listView = findViewByid(R.id.list_view) as ListView"
Thank you, but using " val layoutInflater = LayoutInflater.from(mContext)" in the getView function is very bad idea for performance, should be in the init { }
Yes the next video explains how to use the view holder pattern, it should be in the playlist.
(context: this)
&
( colorString:...)
Showing error 🤔
gg
Is there a reason you're using "findViewById" ? If you set the id you can call the item by the id. Maybe this video is outdated.
This was shot in Android Studio Beta, I wasn't able to use synthetic views at the time for some reason. The new series for Kotlin UA-cam is much cleaner. Go ahead and give that a watch.
Oh.. I didn't know you had a new series. Thank you.