More data in a row : Android Listview using Xamarin

What do you want ?

I just wanted to add a date along with the each place of earthquake that is in the list in my previous blog.

We can use any of the way, like ListActivity or adding a ListView control to the Layout. Here I am going to do it with the ListView control.

Steps to do it

Pretty simple steps.

  • Add a Listview to the layout
  • Create a class or dictionary to contain the custom list of data
  • Customize the Adapter to contain the custom data
  • Use the custom Adapter instead of the default Adapter

Add a Listview to the layout

Create a class or dictionary to contain the custom list of data


I am using a class here.

Customize the Adapter to contain the custom data

Use the custom Adapter instead of the default Adapter

Output

ListViewWithMoreDataInARow

Happy coding 🙂

Categories: Android, CSharp, Visual Studio, Xamarin

1 comment

Leave a Reply

%d bloggers like this: