How to include more table fields in listview?
<p>I'm bringing two fields webservice and populating a listview.</p>

<p>I need to a multi-line textview. My component is large enough to display at least 4 lines, but only 2 lines are displayed.</p>

<p>How do I add more subitems in listview?</p>

<p>I want to include more table fields in listview.</p>

<pre><code>private void pesquisarProdutos() {
    dialog = ProgressDialog.show(this, "Aguarde...",
            "Pesquisando registros.", false, true);
    dialog.setIcon(R.drawable.ic_launcher);
    dialog.setCancelable(false);

    DSRESTConnection conn = gc.getConnection();
    final TServerMethods1 serv = new TServerMethods1(conn);

    new AsyncTask&lt;Void, Void, Void&gt;() {

        @Override
        protected Void doInBackground(Void... params) {
            try {
                TDataSet ds;
                // limpa a lista a cada pesquisa
                dataList.clear();
                ds = serv.ConsultaItens(VendaClienteActivity.edtItem
                        .getText().toString());
                while (ds.next()) {
                    HashMap&lt;String, String&gt; item = new HashMap&lt;String, String&gt;();
                    item.put("nome", ds.getValue("NOME").GetAsString());
                    item.put("id", ds.getValue("CODIGO").GetAsString());
                    dataList.add(item);
                }
                // desabilita o dialog
                dialog.dismiss();
                finalizaDialogo(false, "");

            } catch (Exception e) {// desabilita o dialog
                dialog.dismiss();
                finalizaDialogo(true, e.toString());
            }
            return null;
        }
    }.execute();
}

private void finalizaDialogo(final boolean temErro, final String msg) {
    handler.post(new Runnable() {

        @Override
        public void run() {
            if (temErro)
                Toast.makeText(ListaItensProdutosActivity.this, msg,
                        Toast.LENGTH_LONG).show();
            else
                AtualizarTela();
            // finaliar o dialogo
            dialog.dismiss();
        }
    });
}

private void AtualizarTela() {
    String[] from = new String[] { "nome", "id" };
    int[] to = new int[] { android.R.id.text1, android.R.id.text2 };
    int layoutNativo = android.R.layout.two_line_list_item;

    listItens.setAdapter(new SimpleAdapter(this, dataList, layoutNativo,
            from, to));

    if (listItens == null) {

        Toast.makeText(ListaItensProdutosActivity.this,
                "Não foi encontrado dados nesta busca.", Toast.LENGTH_LONG)
                .show();
        finish();

    }

}
</code></pre>

<p>My XML</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;LinearLayout
        android:id="@+id/layoutCabecalho"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        android:background="@drawable/barra"
        android:gravity="center" &gt;

        &lt;Button
            android:id="@+id/btnClose"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Cancelar"
            android:textSize="14sp" /&gt;

        &lt;LinearLayout
            android:id="@+id/layoutCabecalhoEsquerdo"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:gravity="center_vertical|left" &gt;
        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:id="@+id/layoutCabecalhoCentro"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="3"
            android:gravity="center" &gt;

            &lt;TextView
                android:id="@+id/textoTitulo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Listagem"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#FFFFFF" /&gt;
        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:id="@+id/layoutCabecalhoDireito"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:gravity="center_vertical|right" &gt;
        &lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;

    &lt;ListView
        android:id="@+id/listaItensProdutos"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" &gt;
    &lt;/ListView&gt;

&lt;/LinearLayout&gt;
</code></pre>
