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
  • Наука та технологія

КОМЕНТАРІ • 75

  • @jasonedwardes5594
    @jasonedwardes5594 Рік тому +1

    This tutorial very clear, took me about 2 hours to complete.

  • @mumujibirb
    @mumujibirb 2 роки тому +1

    What if I want to add an image from a path? I need to make a dynamic list

  • @unwiringtech
    @unwiringtech 2 роки тому +1

    why u didn't extended custom adapter using base adapter..?

  • @hemanthsatyendravilluri4799
    @hemanthsatyendravilluri4799 2 роки тому

    I'm getting error as array adapter requires the resource I'd to be a text view!!! How to solve this

  • @GSFRANKy
    @GSFRANKy 10 місяців тому

    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.

  • @VyanAre
    @VyanAre 2 роки тому +1

    Omg its working😭...Thank You sir helping my task😊

  • @stevekelly4347
    @stevekelly4347 3 роки тому +5

    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

  • @DavidNitzscheBell
    @DavidNitzscheBell 3 роки тому +4

    But...how do you add a new item? How do you edit an item? What about user authentication?

  • @ParasProgramming123
    @ParasProgramming123 Рік тому +1

    Your code for list item is not working

  • @yennygonzalez645
    @yennygonzalez645 2 роки тому +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 6 місяців тому

      14:19 my problem now is that I can’t write « nameVal[i] , nameVal2[i] »
      Do you have a solution?

  • @rashiddev7545
    @rashiddev7545 3 роки тому +4

    why don't you explain what each line does? for example layoutinflator.. ?

    • @_foxandroid
      @_foxandroid  3 роки тому +1

      I have dedicated videos on these topics

  • @stevekelly4347
    @stevekelly4347 3 роки тому +1

    Thanks very much for this tutorial very clear and to the point. Keep up the good work;much appreciated

  • @urvishbundela7826
    @urvishbundela7826 3 роки тому +2

    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 роки тому +1

      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 роки тому +1

      @@_foxandroid Thanks for the reply bro, really excited for that tutorial video!!!

    • @SochSamvaad
      @SochSamvaad Рік тому +1

      pass the id in the intent, then on the second activity, extract data from shared preference or database using the id passed.

    • @urvishbundela7826
      @urvishbundela7826 Рік тому

      @@SochSamvaad Thanks bro, will try that too!

  • @baghadboulali4208
    @baghadboulali4208 2 роки тому +1

    thanks so much bro it was helpful

  • @ddattatreyareddy3202
    @ddattatreyareddy3202 6 місяців тому

    Where can i find the images

  • @switchcase7483
    @switchcase7483 2 роки тому +2

    why arent u uploading the code its horrible to type it all i just wanted the basic elements

  • @saga1658
    @saga1658 3 роки тому +1

    Thanks for the video...

  • @mdgalibhasan.2847
    @mdgalibhasan.2847 Рік тому

    pls add calling funtionalities with contact number by implicit intent,

  • @shubhamgutte174
    @shubhamgutte174 3 роки тому +1

    when you creating User as data class .. my android studio not showing the option of data class what should i do?

    • @_foxandroid
      @_foxandroid  3 роки тому +1

      Make sure you are creating kotlin class. If still not showing write it manually

  • @BlyatifulButter
    @BlyatifulButter 2 роки тому +5

    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 Рік тому +1

      I got the same issue, did you find any way to fix it?

    • @BlyatifulButter
      @BlyatifulButter Рік тому +1

      @@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 Рік тому +1

      @@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 Рік тому +3

      @@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 Рік тому +1

      @@masteradvance I'm glad that you fixed the problem!

  • @bigsmoke6414
    @bigsmoke6414 8 місяців тому

    1:05 christopher lookin hella lot sus

  • @ikhsansdq
    @ikhsansdq Рік тому

    Hi, great tutorial btw but I noticed that passing an LayoutInflater in 11:30 is causing an error

    • @siddhantsamarth762
      @siddhantsamarth762 6 місяців тому

      I have the same issue, were you able to find a fix?

  • @bauyr251
    @bauyr251 2 місяці тому

    where is the library?

  • @geethatadi2820
    @geethatadi2820 2 роки тому +1

    where is the source code?

  • @abdulhafiztarmizi3473
    @abdulhafiztarmizi3473 2 роки тому +2

    at 17.54 , where was coming nameProfile, phoneProfil ,etc??? i dont see that

  • @shagunchaturvedi2020
    @shagunchaturvedi2020 3 роки тому +1

    Sir 11:10.... Mujhe ActivityMainBinding class show nhi ho rahi hai

    • @_foxandroid
      @_foxandroid  3 роки тому

      Watch my "ViewBinding FoxAndroid" tutorial

  • @bekie0066
    @bekie0066 Рік тому

    awesome tutorial thanks!

  • @LuckyTods
    @LuckyTods Рік тому

    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 6 місяців тому

      @@SworDam 14:19 my problem now is that I can’t write « nameVal[i] , nameVal2[i] »

  • @spacemeter3001
    @spacemeter3001 2 роки тому +1

    I followed your tutorial but my list view is empty even though I filled the array list with users.

    • @_foxandroid
      @_foxandroid  2 роки тому

      DM on IG

    • @michaelklupsch5868
      @michaelklupsch5868 2 роки тому

      @@_foxandroid can you please elaborate here? for the people without IG ;-)

    • @michaelklupsch5868
      @michaelklupsch5868 2 роки тому +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)

  • @rezajax
    @rezajax 3 роки тому

    hi, whats name your avd?

    • @rezajax
      @rezajax 3 роки тому

      I found it called ApowerMirror

  • @HieuNguyen-vq5re
    @HieuNguyen-vq5re Рік тому +1

    18:02 why cant i find the nameProfile

  • @buddheshborkar4037
    @buddheshborkar4037 3 роки тому +1

    can u share the source code

  • @InsoolindE
    @InsoolindE 2 роки тому

    Can u give me user code? And user activity code?

    • @pccontrol7024
      @pccontrol7024 Рік тому

      Did you access the userActivity codes?

  • @pietroroberto6114
    @pietroroberto6114 3 роки тому +1

    Can we have the source code please?

    • @_foxandroid
      @_foxandroid  3 роки тому

      DM on IG

    • @spacemeter3001
      @spacemeter3001 2 роки тому +1

      Did you get the code?

    • @spacemeter3001
      @spacemeter3001 2 роки тому

      @@_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  2 роки тому

      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

  • @dhaivatjagtap6013
    @dhaivatjagtap6013 2 роки тому

    plz share activity_user.xml code

    • @pccontrol7024
      @pccontrol7024 Рік тому

      Did you access the userActivity codes?