Create a custom adapter for the list view.