Creating Custom List View in Android - Using Android ListView

preview_player
Показать описание
In the last video (Showing List in Android App using the ListView and ArrayAdapter) I showed you how you can add ListView to your android app.

But If you use ListView in your Activity then you cannot customize the list item so this which means you can not add any other view to that list item instead of a default Simple TextView which also has a Default font associated with it.

So that's why we use a Custom ListView, For Creating a Custom ListView we have to create a CustomAdapter class which extends the ArrayAdapter class and this class has to override the getView() method of the ArrayAdapter class.

Now inside that method, we have the return a View that will replace the view of each item in the ListView. In this method only we have to bind the data and then return the View.
Рекомендации по теме
Комментарии
Автор

Please Subscribe to Learn Android Development and Don't forget to Like and share this Video.

AbhishekSingh-yzvn
visit shbcf.ru