Custom ListView in Android studio using [ KOTLIN ]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone this is Mansell and in this tutorial I will tell you how to use custom is to you whenever project so first go to your layout and create an extractor I already created a list item so this is a rounded image and within a linear layout which orientation vertical I will put two texts to use one is for title and another is for description so if you find any difficulties regarding this I will put my github paste link in our description box so go to this link and just copy this list item from okay now create a class and in the data the parameters first is image three variables such as image and second is title which is of type and second is and third is our description okay now create our custom our adapter because it's it is a custom is to that's why we need a custom and attackers and pass justice activity and second is our list which is of type list of our so this is a list which we want to so enable custom is to be okay now extend this class with array adapters you can see and then our type is our data and first parameter is our context for I pass activity and second is our list item layout so our layout list items now it's fine we will override two methods first is get count and the second is ever get to be so second is ever get with this one and we can return our list size and by using using these by using this and instead of patent this is description similarly here in description now she spends Boone is like this forgive us so first I initialize our pattern so our title is our text is equal to this position no item and [Music] description and our images not set image resource and by using our place maybe like to give the image a resource okay now this position is actually we will get from this get me and now return our let's find now go to our main activity and first we will add a list meal so this is our list okay and a side is list go to main activity and first we will initialize our list to find my ID and it is fine ID ID dot list okay now we will create a list the list which you want to appear in our list its list of now I am adding some retyping so this is how I will email it be source hard drive by God something you can see I already added some images in our [Music] subject the get a place if you face any disparities and get about the data now create a custom array doctors tend to initialize our customary adapter so custom very adapters and purse this time securely list okay this meant nothing me adapters you know it is all list needs to drill down and address is equal to our customer reenactors now our emulator will run successfully and you can see this is a custom list okay now if you like my video please subscribe my channel
Info
Channel: Himanshu Gaur
Views: 1,595
Rating: undefined out of 5
Keywords: custom listview, custom listview in android studio, custom listview in android studio in hindi, custom listview in fragment in android studio, listview in android studio, listview custom array adapter, listview android studio firebase, listview in android, listview in android studio in fragments, listview in android studio in hindi, listview vs recycler view, list, listview, androidtutorials, codedroid_karna, himanshu gaur, android
Id: SsjA5DE_cWY
Channel Id: undefined
Length: 8min 8sec (488 seconds)
Published: Fri Jun 19 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.