Android - Custom ListAdapter look more fancier
In this tutorial, we will update the layout of our ListView rows, so they show both the name and address of the restaurant, plus an icon indicating the type. Along the way, we will need to create our own custom ListAdapter to handle our row views and a RestaurantHolder to populate a row from a restaurant. Note : Please follow the Android Tutorial Post Here Before You Step On This Post. Create a Stub Custom Adapter Create a stub implementation of a RestaurantAdapter that will be where we put our logic for creating our own custom rows. That can look like this, implemented as an inner class of LunchList : class RestaurantAdapter extends ArrayAdapter<Restaurant> { RestaurantAdapter() { super(LunchList.this, android.R.layout.simple_list_item_1,model); } } The above code use hard-wire in the android.R.layout.simple_list_item_1 layout for now, and we get our Activity and model from LunchList itself. Next we need to change our adapter