No video

Android Studio Custom ListView with image, text and Open New Activity When Items are clicked.

  Рет қаралды 63,406

larn tech

larn tech

Күн бұрын

Android studio custom listview that Open new activity when the items are clicked.
For additional help/customization and tasks reach me via.
www.fiverr.com...
See updated version of recyclerview here:
• Recyclerview OnClickLi...
We shall also learn how to pass data to another activity when listview items are clicked
Our listview will consist of Image, Text and OnItemClickListener which will listen to click and open new activity.
The items in the listview are images and names of various fruit. When any items is click a new activity open and display that image and name of clicked item.
Remember to subscribe of you are not subscribed.
Subscribe link: www.youtube.co...
Source code and more details.
larntech.net/a...
Want to buy me a coffee;
www.paypal.com...
Follow us in our social media platforms:
Instagram: / larn_tech
Facebook: / larntech
Twitter: / larn_tech
For additional help kindly comment below or reach me via.
larntech20@gmail.com

Пікірлер: 79
@larntech20
@larntech20 4 жыл бұрын
Thanks for watching. Subscribe for more tutorials # ​bit.ly/larntech For any clarification or question feel free to comment below.
@marco7838
@marco7838 Жыл бұрын
how to make image buttons open up new activity page in android studios?
@snehalmishra5429
@snehalmishra5429 4 жыл бұрын
Thank you Sir you saved my time Good tutorial with less timing Keep it up 👍👍
@larntech20
@larntech20 4 жыл бұрын
Glad it helped
@rupeshsurve2108
@rupeshsurve2108 3 жыл бұрын
So much helpful 👍❤️
@larntech20
@larntech20 3 жыл бұрын
Glad it was helpful!
@priyankashivappa
@priyankashivappa 3 жыл бұрын
Thank You its was so useful
@lance202520
@lance202520 2 жыл бұрын
Thank you
@larntech20
@larntech20 2 жыл бұрын
You are very much welcomed
@tvt2378
@tvt2378 3 жыл бұрын
Thank you so much.
@larntech20
@larntech20 3 жыл бұрын
You're welcome!
@projectsharewyd7028
@projectsharewyd7028 4 жыл бұрын
thanks
@larntech20
@larntech20 4 жыл бұрын
Welcome
@marco7838
@marco7838 Жыл бұрын
how to make image buttons open up new activity page in android studios?
@Mutlaq777
@Mutlaq777 5 жыл бұрын
ينصر دينك ياصديق
@larntech20
@larntech20 3 жыл бұрын
Thanks also here is an update version of the same tutorial. kzfaq.info/get/bejne/od6lp62e3r3Hd2w.html
@MuhammadKhalid-ch8nw
@MuhammadKhalid-ch8nw 5 жыл бұрын
the site is not working
@larntech20
@larntech20 3 жыл бұрын
Sorry for that, Kindly check now. also here is an update version of the tutorial. kzfaq.info/get/bejne/od6lp62e3r3Hd2w.html
@aidaaqilahmohdzin5542
@aidaaqilahmohdzin5542 2 жыл бұрын
thank you sir, it really helpful. But how do i add audio in the detailed screen after user clicks on the list item?
@larntech20
@larntech20 2 жыл бұрын
Hi, audio. you can implementing android media player
@aidaaqilahmohdzin5542
@aidaaqilahmohdzin5542 2 жыл бұрын
@@larntech20 thank you for your quick reply. I guess i have to go further searching on this as I am a beginner. Thank you for your suggestion sir :)
@designertv3416
@designertv3416 2 жыл бұрын
thanks, but we can't hear your sound, plz speak louder 🌷
@larntech20
@larntech20 2 жыл бұрын
Sorry for that, kindly check on description we have an update version of the same tutorial
@gowthampalacharla7884
@gowthampalacharla7884 5 жыл бұрын
Hi...my app was successfully built ..but when i am trying run my emulator ..it is displaying unfortunately stopped ..and the app is getting closed
@lance_oquendo
@lance_oquendo 5 жыл бұрын
thats what happen when theres an error in your app
@larntech20
@larntech20 5 жыл бұрын
Hi Gowtham, Sorry for the late response. If you didn't manage to solve the error could you kindly let me see what error you are getting
@siddhantalva3041
@siddhantalva3041 3 жыл бұрын
Why does the image not show when I click on the list.
@larntech20
@larntech20 3 жыл бұрын
Are you getting any error message
@woonie3134
@woonie3134 3 жыл бұрын
Sir how to add scroll if we have multiple list item
@larntech20
@larntech20 3 жыл бұрын
listview items have autoscroll
@MuhammadSadiq-vr5wv
@MuhammadSadiq-vr5wv 5 жыл бұрын
Hi brother you done it very well but i have one i made an application like you but in your application there is 5 or 6 data items etc but i have multiple data in listview round about 100 data in list so my question is when i click on first item in listview and it goes to another acitvity and then i back from this activity to listview its fine that its show from first but when i click on middle or last item in listview it goes to another activity when i back from this activity to listview activity it show me data from first so how i stay selected on item in listview when coming from back activity ?
@larntech20
@larntech20 5 жыл бұрын
HI, try to finish the activity when returning to listview .. startActivity(new Intent(AnotherActivity.this,ListViewActivity.class)); finish();
@MuhammadSadiq-vr5wv
@MuhammadSadiq-vr5wv 5 жыл бұрын
@@larntech20 thanks bro but i already done it by this code adapter = new dataAdapter(this, datas); ListView listView = (ListView) findViewById(R.id.listview); listView.setAdapter(adapter); int h1=listView.getHeight(); listView.smoothScrollToPositionFromTop(comeback,h1,2); listView.smoothScrollToPosition(comeback,0); listView.setSelection(comeback);
@noxtorious2962
@noxtorious2962 2 жыл бұрын
when i click the image and text is not showing in the other activity how to fix that?
@larntech20
@larntech20 2 жыл бұрын
Hi, we have made updated tutorial of this. kindly check on the desc. thanks
@void417
@void417 4 жыл бұрын
Hey sir, what if i wanna add button and in different view the button give a different command.
@larntech20
@larntech20 4 жыл бұрын
Hey sir, kindly explain more so that i can be able to help
@BoY211095
@BoY211095 4 жыл бұрын
How to add search bar in this listview?
@larntech20
@larntech20 4 жыл бұрын
Hello, check my recent video on adding seach bar to a listview kzfaq.info/get/bejne/brd0h8yAurXKe4U.html
@jesseb4503
@jesseb4503 4 жыл бұрын
Doesn't work. The intent line is deprecated and no longer functional without errors.
@larntech20
@larntech20 3 жыл бұрын
Hi, i have uploaded an update version here. kindly check it here. kzfaq.info/get/bejne/od6lp62e3r3Hd2w.html
@SachinRaoYT
@SachinRaoYT 3 жыл бұрын
My apololgy but I am Indian Sir but Still Can't Understand What Are you Saying .
@larntech20
@larntech20 3 жыл бұрын
Hey, I have an updated tutorial for this. kindly check the link below. kzfaq.info/get/bejne/q9B7d7GQv9qreIU.html
@dasisridarshan106
@dasisridarshan106 5 жыл бұрын
Hi sir, how to save scroll position of recylerview activity when we go to next detail activity by clicking itemclicklistener from list of items in recyclerview and restore position when we come back to recylerview activity...sir can you please help me
@larntech20
@larntech20 3 жыл бұрын
Hi, kindly check updated tutorial here. kzfaq.info/get/bejne/g5NnaZCnnaeucZ8.html
@saulsousa457
@saulsousa457 5 жыл бұрын
not working ,
@larntech20
@larntech20 5 жыл бұрын
Saul, Thanks for your comment .. could you kindly let me know what exactly is not working so as i can help
@moudhimohammed6072
@moudhimohammed6072 3 жыл бұрын
Hello can you do this with firebase ?
@larntech20
@larntech20 3 жыл бұрын
Hi, check my firebase tutorial here. kzfaq.info/get/bejne/o7mHqbCCltPbZ6c.html
@fefotofefofbg
@fefotofefofbg 5 жыл бұрын
please update the site! aside from that, nice video
@larntech20
@larntech20 5 жыл бұрын
Thanks a lot, I will update sorry for inconveniences
@fefotofefofbg
@fefotofefofbg 5 жыл бұрын
@@larntech20 no problem man. The tutorial was very simple and helped me a lot, thanks for that. I just have one question - how can I redirect each of the options from the ListView to other different activies that contain other ListViews? I'm needing it for an app I am creating right now and it's the last thing I have to figure out. Thanks in advance!
@larntech20
@larntech20 5 жыл бұрын
​@@fefotofefofbg You can write a simple switch statement inside onItemClickListener. For example switch (fruitNames[i]){ case "case1": startActivity(new Intent(getApplicationContext(),activity1.class)); //if you need to pass data use startActivity(new Intent(getApplicationContext(),activity1.class).putExtra("", fruitsImages[i]).putExtra("",fruitsNames[i])); break; case "case2": startActivity(new Intent(getApplicationContext(),activity2.class)); //if you need to pass data use startActivity(new Intent(getApplicationContext(),activity2.class).putExtra("", fruitsImages[i]).putExtra("",fruitsNames[i])); break; case "case3": startActivity(new Intent(getApplicationContext(),activity3.class)); //if you need to pass data use startActivity(new Intent(getApplicationContext(),activity3.class).putExtra("", fruitsImages[i]).putExtra("",fruitsNames[i])); break; default: startActivity(new Intent(getApplicationContext(),activity1.class)); //if you need to pass data use startActivity(new Intent(getApplicationContext(),activity1.class).putExtra("", fruitsImages[i]).putExtra("",fruitsNames[i])); break; }
@fefotofefofbg
@fefotofefofbg 5 жыл бұрын
@@larntech20 thank you so much for the quick responses, you helped me a lot :D like + sub
@siddhantalva3041
@siddhantalva3041 3 жыл бұрын
what is I ? in this intent.putExtra("name",fruitNames[i]);
@larntech20
@larntech20 3 жыл бұрын
i represent the position of the selected item
@rushabhmandvekar4411
@rushabhmandvekar4411 4 жыл бұрын
Please provide xml file in the source code.Also the CustomAdapter is not showing in my Android studio. Please guide.
@larntech20
@larntech20 4 жыл бұрын
Hi sir, here i have an updated version of the tutorial kzfaq.info/get/bejne/g5NnaZCnnaeucZ8.html
@rushabhmandvekar4411
@rushabhmandvekar4411 4 жыл бұрын
@@larntech20 Thanks 😊
@harmain1290
@harmain1290 4 жыл бұрын
your database is not working properly
@larntech20
@larntech20 4 жыл бұрын
Apologise, that is usually a temporary database which is dropped after sometime.
@dhoomiialmarhly361
@dhoomiialmarhly361 5 жыл бұрын
I did the same way but I can't click
@larntech20
@larntech20 5 жыл бұрын
Hello, Sorry for that .. would you kindly share that class i check it for you. I will check it for you
@gwadartravelfoodlover6139
@gwadartravelfoodlover6139 5 жыл бұрын
Screen should be white
@larntech20
@larntech20 5 жыл бұрын
Sahir, which screen are talking about one with listview or the other one that opens
@aldefa2508
@aldefa2508 3 жыл бұрын
can you do kotlin version?
@larntech20
@larntech20 3 жыл бұрын
Hi, check kotlin version kzfaq.info/get/bejne/arh6eNCCvrHSkqM.html
@reihannoor3409
@reihannoor3409 4 жыл бұрын
greetings sir, can i direct chat with u sir?i have some question for my assingment ,are you have telegram sir?
@larntech20
@larntech20 4 жыл бұрын
Hi sir, I have a telegram account. You can reach me using. t.me/larntech
@azazmanzoor5463
@azazmanzoor5463 5 жыл бұрын
successfully built.app crashing ? :(
@farhankhanniazi6331
@farhankhanniazi6331 5 жыл бұрын
crashing
@larntech20
@larntech20 5 жыл бұрын
Kindly send the error message so as I can be able to check on my side
@chocobarrel
@chocobarrel 5 жыл бұрын
can anybody understand what is he speaking?
@larntech20
@larntech20 5 жыл бұрын
Hi chocobarrer, Kindly use this link if the voice is low larntech.net/android-custom-listview-that-open-new-activity-to-display-clicked-item/
@grei.5425
@grei.5425 3 жыл бұрын
do u have OnlyFans?
@larntech20
@larntech20 3 жыл бұрын
No sir
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 40 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 42 МЛН
Harley Quinn's revenge plan!!!#Harley Quinn #joker
00:59
Harley Quinn with the Joker
Рет қаралды 14 МЛН
Android Listview Onitemclick Example
22:45
Coding Demos
Рет қаралды 147 М.
Custom listView Pass Data to Another Activity - Part 2
21:56
Android WorldClub
Рет қаралды 19 М.
ListView with Image in Android Studio
24:08
Sandip Bhattacharya
Рет қаралды 34 М.
Custom listView in android with item click
14:25
Android WorldClub
Рет қаралды 194 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 133 М.
03 - Custom List View (List View with Image) Android Studio
10:18
Riyanto Assiaki
Рет қаралды 2 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 40 МЛН