android: creating a textfield display on the same activity with a ListActivity
<p>I have an activity that pulls a String Array from xml and displays a ListActivity (the class extends ListActivity) and I'd like to know if it is possible to also display a textfield or textView below the list?</p>

<p>If so, what method should I research to do this? Have code samples?</p>

<p>Thanks!</p>

<p>CODE:</p>

<pre><code>public class txchl extends ListActivity {
/** Called when the activity is first created. */
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    //setContentView(R.layout.main);
    String[] rmenu = getResources().getStringArray(R.array.root_menu);
    if (rmenu != null) {
        setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, rmenu));
    }
    TextView tv = new TextView(this);
    tv.setText("Hello");
    setContentView(tv);
}
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
    super.onListItemClick(l, v, position, id);
    //
    if (position == 4 || position == 5) {
        Intent myIntent = new Intent(v.getContext(), Activity2.class);
        myIntent.putExtra("com.activity.Key", position);
        startActivity(myIntent);
    } else {
        Intent myIntent = new Intent(v.getContext(), txchl_hb.class);
        myIntent.putExtra("com.activity.Key", position);
        //myIntent.putExtra("com.activity.Dir", directives[position]);
        startActivity(myIntent);
    }
}
</code></pre>

<p>}</p>
