Implement ListView in Android

Hello Friends now we create List View in Android.
  • First we create a new xml file or we can create the same xml file.

 
  • In this xml file List view tag is used and ensure that id is also provide it.
  • After that now we move to main file.



  • Now in this we use ArrayAdapter to store the data in array format.
  • After that we set the Adapter by the ArrayAdapter objet.
  • Like in the given above Pic. shown to you.

 If image are not shown clearly then click on it Please.
Hope you understand the my code.

Comments

AddThis