Custom ListView with item click using Kotlin in Android || ListView in Android || Kotlin
Вставка
- Опубліковано 29 кві 2021
- Custom ListView with item click using Kotlin in Android || ListView in Android || Kotlin
Follow me on Instagram: / foxandroidblog
Follow me on Facebook: / foxandroidblog
---------------------------------------------------------------------------------------------------------------------------------------------------------
Equipment I Use to Make My videos:
📱 Phone -: amzn.to/3px6ucS
🎧Earphones -: amzn.to/3JecI98
🎙️Mic - : amzn.to/310u7Rp
🎙️Mic - : amzn.to/3He96SW
🔊Speakers - : amzn.to/3Hgfzg8
💾External HardDrive - amzn.to/3JoRzZV
💻 My PC build: www.amazon.in/shop/foxandroid
--------------------------------------------------------------------------------------------------------------------------------------------------------
Hey Developers,
In this video, I have explained :
* How to implement Custom List view in Android using Kotlin
* How to implement Itemclicklistener on the custom list view using Kotlin
Nested RecylerView in Android Studio
• Nested RecylerView in ...
How to Implement Viewpager2 in Android Studio
• How to Implement Viewp...
Tab Layout with Fragments in Android Studio
• Tab Layout with Fragme...
How to Load Image from URL in Android Studio
• How to Load Image from...
How to Implement GridView in Android Studio
• How to Implement GridV...
Custom Listview with item click in Android
• Custom Listview with i...
#customlistview #listview #kotlin - Наука та технологія
This tutorial very clear, took me about 2 hours to complete.
What if I want to add an image from a path? I need to make a dynamic list
why u didn't extended custom adapter using base adapter..?
I'm getting error as array adapter requires the resource I'd to be a text view!!! How to solve this
Thanks for the tutorial! I would like to make it possible to view multiple images on the User page that appears when clicking on the item list, using a view pager. Can I get some assistance with this? It would be even better if there is a video tutorial available.
Omg its working😭...Thank You sir helping my task😊
Finally completed the Kotlin version and works really well I typed it all out but had to use the user_activity xml from your java repo of same project. Very clear and concise project
Congratulations!!👍
But...how do you add a new item? How do you edit an item? What about user authentication?
Your code for list item is not working
14:32 I don't why but Indices doesn't appear as a function and I did exactly what you did, idk what to do, help me pleaseeeeeee
14:19 my problem now is that I can’t write « nameVal[i] , nameVal2[i] »
Do you have a solution?
why don't you explain what each line does? for example layoutinflator.. ?
I have dedicated videos on these topics
Thanks very much for this tutorial very clear and to the point. Keep up the good work;much appreciated
Glad it helped!
Hello bhai, Thanks a lot for this tutorial, can you tell us how to implement a story view for the same project, I mean clicking an item and opening a story activity just like in social media apps. I want to know how thus is implemented via kotlin.
Urvish you can implement story mode in same manner the change you need to do is in the second activity....will make tutorial on that soon
@@_foxandroid Thanks for the reply bro, really excited for that tutorial video!!!
pass the id in the intent, then on the second activity, extract data from shared preference or database using the id passed.
@@SochSamvaad Thanks bro, will try that too!
thanks so much bro it was helpful
Where can i find the images
why arent u uploading the code its horrible to type it all i just wanted the basic elements
DM on IG on Discord
Thanks for the video...
pls add calling funtionalities with contact number by implicit intent,
when you creating User as data class .. my android studio not showing the option of data class what should i do?
Make sure you are creating kotlin class. If still not showing write it manually
14:32 I did exactly as you typed but it doesn't work, it gives me an error that "listview" is an unresolved reference. Yes, I have the same listview ID.
I got the same issue, did you find any way to fix it?
@@masteradvance I haven't touched Kotlin in 8 months, but I'll try my best to help. From what I remember, there should be a buildFeatures section in your build.gradle. Add "viewBinding true" to it, then go and change the listview ID to something else, like "mylistview" or something instead, and that should work but I'm not sure since I cannot test it.
@@BlyatifulButter Thanks, i think I'm doing something wrong, because i have viewBinding true and i have change the listview ID multiple times, so i have to recheck everything, but still thank you so much just for replying!
@@BlyatifulButter Got it, i share my problem, i wasn't working on the Main Activity, so i had to declare the binding variable as a ActivityNameoftheactivityBinding instead of ActivityMainBinding
@@masteradvance I'm glad that you fixed the problem!
1:05 christopher lookin hella lot sus
Hi, great tutorial btw but I noticed that passing an LayoutInflater in 11:30 is causing an error
I have the same issue, were you able to find a fix?
where is the library?
where is the source code?
at 17.54 , where was coming nameProfile, phoneProfil ,etc??? i dont see that
same problem
same problem
it's id name, phone,.. of activity_user.xml
Sir 11:10.... Mujhe ActivityMainBinding class show nhi ho rahi hai
Watch my "ViewBinding FoxAndroid" tutorial
awesome tutorial thanks!
When i type "binding.listview. ..." it doesn't work. Error "Unresolved reference: listview". Can someone help me?
Write "ActivityNameoftheactivityBinding" instead of "ActivityMainBinding"
@@SworDam 14:19 my problem now is that I can’t write « nameVal[i] , nameVal2[i] »
I followed your tutorial but my list view is empty even though I filled the array list with users.
DM on IG
@@_foxandroid can you please elaborate here? for the people without IG ;-)
nvm found it myself...
for anyone wondering, make sure to not forget the arrayList when extending ArrayAdapter in the MyAdapter class
class MyAdapter(private val context : Activity,private val arrayList : ArrayList) : ArrayAdapter(context, R.layout.list_item,arrayList)
hi, whats name your avd?
I found it called ApowerMirror
18:02 why cant i find the nameProfile
Can you find it?
can u share the source code
DM on IG
Can u give me user code? And user activity code?
Did you access the userActivity codes?
Can we have the source code please?
DM on IG
Did you get the code?
@@_foxandroid Please share it in the video description. II have problems running it on my machine and would like to see where the error is
Please get it on Discord
@@_foxandroid hi, can i have the source code please? i have been following all of your source code from this video but its still gives me an error
plz share activity_user.xml code
Did you access the userActivity codes?