In the previous articles of ListView, ArrayAdapter are used. Only one item can be display on each entry.
In this article, SimpleAdapter is used. Such that we have more than one items on each entry.

It's a ListActivity list the ASCII symbols from 32 to 126, in which there are two items, the code and the symbol, will be display on each entry.
The ASCII symbols are converted using EncodingUtils.getAsciiString().
We have a List to hold the code:symbol pair for each entry, and use SimpleAdapter to adapte to the ListView.
All we need is two files only
/res/row.xml, which is the layout of each entry on the ListView
AndroidAscii.java
Download the files.
In this article, SimpleAdapter is used. Such that we have more than one items on each entry.

It's a ListActivity list the ASCII symbols from 32 to 126, in which there are two items, the code and the symbol, will be display on each entry.
The ASCII symbols are converted using EncodingUtils.getAsciiString().
We have a List to hold the code:symbol pair for each entry, and use SimpleAdapter to adapte to the ListView.
All we need is two files only
/res/row.xml, which is the layout of each entry on the ListView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text = " " />
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text = " : " />
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
AndroidAscii.java
package com.exercise.AndroidAscii;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.http.util.EncodingUtils;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.Toast;
public class AndroidAscii extends ListActivity
{
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
List