How to create Listview With BaseAdater in android

Let’s get started with eclipse IDE.
In this we created simple Listview BaseAdater.

Listview BaseAdater

Download Code Download APK

  • Create new project-> File->New -> Android Project and give activity Android Listview BaseAdater.
    Open your Android class MainActivity and extend Activity.
MainActivity.java

Now create CustomBaseAdapter that extend BaseAdapter class and code as below.

CustomeBaseAdapter.java

Now for our three parameter need to create Pojo class called as Model and code as below.

Modle.java

Open your activity main and inside put a listview.

activity_main.xml

For list view need to create list item as below. here we take one imageview and two textview.

list_item.xml

Now ,our project Listview BaseAdater check manifest file.

AndroidManifest.xml

Now Run project Listview BaseAdater using run button.