Рет қаралды 11,144
In this tutorial we build a simple List View app in Android Studio using Java.
I will demonstrate how to build a list view using a custom adapter. Our adapter class is going extend ArrayAdapter.
We will also implement an on click listener for our list view. So that when you tap on any given row in our list we will taken to a detail activity. To achieve this we will pass our selected item to our detail activity via an intent using put extra.
Our List View will use a custom class of Shape for this example to populate each row. The principles applied here could be used for any custom class that you would like to create a list view for.
Shape List Images:
drive.google.com/drive/folder...
Tutorial 1 (This video) - How to build a List View
Source Code: github.com/codeWithCal/Shapelist
Link: • List View App Android ...
Tutorial 2 - Search and Filter List View:
Source Code: github.com/codeWithCal/Shapel...
Link: • Filter & Search List V...
Tutorial 3 - ListView with search, filter, sort & toolbar:
Link: • Sort List View Android...
Tutorial 4 - ListView Multi-select filters:
Link: • How to Filter List Vie...
⏱️TIMESTAMPS
00:00 - Intro
00:25 - Set up
01:20 - Shape Class
02:19 - Layouts
03:59 - Adapter
07:29 - List Activity
10:52 - On Click Listener
13:19 - Detail Activity
15:43 - Testing
#ListView #AndroidStudio #AppDevelopment #CustomAdapter