Custom ListView with item click using Kotlin in Android || ListView in Android || Kotlin

  Рет қаралды 56,071

Foxandroid

Foxandroid

Күн бұрын

Пікірлер: 71
@BlyatifulButter
@BlyatifulButter 2 жыл бұрын
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.
@masteradvance
@masteradvance 2 жыл бұрын
I got the same issue, did you find any way to fix it?
@BlyatifulButter
@BlyatifulButter 2 жыл бұрын
@@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.
@masteradvance
@masteradvance 2 жыл бұрын
@@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!
@masteradvance
@masteradvance 2 жыл бұрын
@@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
@BlyatifulButter
@BlyatifulButter 2 жыл бұрын
@@masteradvance I'm glad that you fixed the problem!
@yennygonzalez645
@yennygonzalez645 2 жыл бұрын
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
@d.o.a9236
@d.o.a9236 Жыл бұрын
14:19 my problem now is that I can’t write « nameVal[i] , nameVal2[i] » Do you have a solution?
@stevekelly4347
@stevekelly4347 3 жыл бұрын
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
@_foxandroid
@_foxandroid 3 жыл бұрын
Congratulations!!👍
@jasonedwardes5594
@jasonedwardes5594 2 жыл бұрын
This tutorial very clear, took me about 2 hours to complete.
@rashiddev7545
@rashiddev7545 3 жыл бұрын
why don't you explain what each line does? for example layoutinflator.. ?
@_foxandroid
@_foxandroid 3 жыл бұрын
I have dedicated videos on these topics
@mumujibirb
@mumujibirb 2 жыл бұрын
What if I want to add an image from a path? I need to make a dynamic list
@DavidNitzscheBell
@DavidNitzscheBell 3 жыл бұрын
But...how do you add a new item? How do you edit an item? What about user authentication?
@unwiringtech
@unwiringtech 3 жыл бұрын
why u didn't extended custom adapter using base adapter..?
@ParasProgramming123
@ParasProgramming123 Жыл бұрын
Your code for list item is not working
@ikhsansdq
@ikhsansdq Жыл бұрын
Hi, great tutorial btw but I noticed that passing an LayoutInflater in 11:30 is causing an error
@siddhantsamarth762
@siddhantsamarth762 Жыл бұрын
I have the same issue, were you able to find a fix?
@hemanthsatyendravilluri4799
@hemanthsatyendravilluri4799 3 жыл бұрын
I'm getting error as array adapter requires the resource I'd to be a text view!!! How to solve this
@switchcase7483
@switchcase7483 2 жыл бұрын
why arent u uploading the code its horrible to type it all i just wanted the basic elements
@_foxandroid
@_foxandroid 2 жыл бұрын
DM on IG on Discord
@HieuNguyen-vq5re
@HieuNguyen-vq5re 2 жыл бұрын
18:02 why cant i find the nameProfile
@nihadmemmedli3650
@nihadmemmedli3650 Жыл бұрын
Can you find it?
@bigsmoke6414
@bigsmoke6414 Жыл бұрын
1:05 christopher lookin hella lot sus
@shagunchaturvedi2020
@shagunchaturvedi2020 3 жыл бұрын
Sir 11:10.... Mujhe ActivityMainBinding class show nhi ho rahi hai
@_foxandroid
@_foxandroid 3 жыл бұрын
Watch my "ViewBinding FoxAndroid" tutorial
@GSFRANKy
@GSFRANKy Жыл бұрын
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.
@urvishbundela7826
@urvishbundela7826 3 жыл бұрын
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.
@_foxandroid
@_foxandroid 3 жыл бұрын
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
@urvishbundela7826
@urvishbundela7826 3 жыл бұрын
@@_foxandroid Thanks for the reply bro, really excited for that tutorial video!!!
@AnkurJhavery
@AnkurJhavery 2 жыл бұрын
pass the id in the intent, then on the second activity, extract data from shared preference or database using the id passed.
@urvishbundela7826
@urvishbundela7826 2 жыл бұрын
@@AnkurJhavery Thanks bro, will try that too!
@geethatadi2820
@geethatadi2820 2 жыл бұрын
where is the source code?
@ddattatreyareddy3202
@ddattatreyareddy3202 Жыл бұрын
Where can i find the images
@shubhamgutte174
@shubhamgutte174 3 жыл бұрын
when you creating User as data class .. my android studio not showing the option of data class what should i do?
@_foxandroid
@_foxandroid 3 жыл бұрын
Make sure you are creating kotlin class. If still not showing write it manually
@bauyr251
@bauyr251 9 ай бұрын
where is the library?
@LuckyTods
@LuckyTods 2 жыл бұрын
When i type "binding.listview. ..." it doesn't work. Error "Unresolved reference: listview". Can someone help me?
@SworDam
@SworDam Жыл бұрын
Write "ActivityNameoftheactivityBinding" instead of "ActivityMainBinding"
@d.o.a9236
@d.o.a9236 Жыл бұрын
@@SworDam 14:19 my problem now is that I can’t write « nameVal[i] , nameVal2[i] »
@mdgalibhasan.2847
@mdgalibhasan.2847 2 жыл бұрын
pls add calling funtionalities with contact number by implicit intent,
@spacemeter3001
@spacemeter3001 3 жыл бұрын
I followed your tutorial but my list view is empty even though I filled the array list with users.
@_foxandroid
@_foxandroid 3 жыл бұрын
DM on IG
@michaelklupsch5868
@michaelklupsch5868 2 жыл бұрын
@@_foxandroid can you please elaborate here? for the people without IG ;-)
@michaelklupsch5868
@michaelklupsch5868 2 жыл бұрын
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)
@buddheshborkar4037
@buddheshborkar4037 3 жыл бұрын
can u share the source code
@_foxandroid
@_foxandroid 3 жыл бұрын
DM on IG
@stevekelly4347
@stevekelly4347 3 жыл бұрын
Thanks very much for this tutorial very clear and to the point. Keep up the good work;much appreciated
@_foxandroid
@_foxandroid 3 жыл бұрын
Glad it helped!
@baghadboulali4208
@baghadboulali4208 3 жыл бұрын
thanks so much bro it was helpful
@rezajax
@rezajax 3 жыл бұрын
hi, whats name your avd?
@rezajax
@rezajax 3 жыл бұрын
I found it called ApowerMirror
@ANIMA_Impact
@ANIMA_Impact 2 жыл бұрын
Can u give me user code? And user activity code?
@pccontrol7024
@pccontrol7024 2 жыл бұрын
Did you access the userActivity codes?
@VyanAre
@VyanAre 3 жыл бұрын
Omg its working😭...Thank You sir helping my task😊
@pietroroberto6114
@pietroroberto6114 3 жыл бұрын
Can we have the source code please?
@_foxandroid
@_foxandroid 3 жыл бұрын
DM on IG
@spacemeter3001
@spacemeter3001 3 жыл бұрын
Did you get the code?
@spacemeter3001
@spacemeter3001 3 жыл бұрын
@@_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
@_foxandroid
@_foxandroid 3 жыл бұрын
Please get it on Discord
@dindasetya6621
@dindasetya6621 2 жыл бұрын
@@_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
@saga1658
@saga1658 3 жыл бұрын
Thanks for the video...
@bekie0066
@bekie0066 Жыл бұрын
awesome tutorial thanks!
@dhaivatjagtap6013
@dhaivatjagtap6013 3 жыл бұрын
plz share activity_user.xml code
@pccontrol7024
@pccontrol7024 2 жыл бұрын
Did you access the userActivity codes?
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Bottom Navigation in Jetpack Compose using Kotlin | Android Studio
16:50
Android Knowledge
Рет қаралды 11 М.
RecyclerView in Android Studio [Kotlin 2020]
15:49
CodeWithMazn
Рет қаралды 58 М.
Bottom Navigation in Android Studio using Kotlin | Android Knowledge
16:25
RecyclerView - Android Studio Tutorial | Part 1
16:44
Stevdza-San
Рет қаралды 262 М.
How to Navigate in Jetpack Compose 🚀 | Android Studio | 2024
13:45
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 149 М.
Getting started with Retrofit - Crash Course 🔥
1:39:09
Android Geek
Рет қаралды 10 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 140 М.