Android ListView, OnListItemClick find all the views of row
<p>I want all the views of Row in OnListItemClick()
Actually I want to change the text of one of a textView when that row is clicked, as currently  I have two textViews. should I call OnCreate() method or something else??
Here is the code</p>

<pre><code>public class List extends ListActivity {

public ArrayList&lt;HashMap&lt;String,String&gt;&gt; list = new ArrayList&lt;HashMap&lt;String,String&gt;&gt;();


@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.list);
    HashMap&lt;String,String&gt; temp = new HashMap&lt;String,String&gt;();
    temp.put("first","Strength");
    temp.put("second", strength);

    list.add(temp);

    setListAdapter(new SimpleAdapter(this,list,R.layout.row_view, new String [] {"first","second"}, new int [] {R.id.rowTextView1, R.id.rowTextView2} ));

}


@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
    // TODO Auto-generated method stub
    super.onListItemClick(l, v, position, id);
    HashMap&lt;String,String&gt; temp = new HashMap&lt;String,String&gt;();
    list.remove(0);
    temp.put("first","Strength");
    temp.put("second", "low");

    list.add(temp);


    Toast.makeText(this, "you have selected " + list.get(position).get("first"), Toast.LENGTH_SHORT).show();
}

}
</code></pre>

<p>and here is the xml of row_view</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;TextView
    android:id="@+id/rowTextView1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="20dp"
     /&gt;

&lt;TextView
    android:id="@+id/rowTextView2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="10dp"
     /&gt;

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

<p>simmilarly I want to change text in onActivityResult()</p>

<p>thanks</p>
