Modify a textview value in a custom listview after clicking
<p>This listview has an adapter that is linked to a layout for each row (itemrow.xml)</p>

<p>The price value (500-250 300) is a textview</p>

<p>How can we access to it, to modify it, once clicked on a button ?</p>

<p>lllllllllllllllllllllllllllllllll</p>

<p>Android</p>

<p>Price: 500</p>

<p>lllllllllllllllllllllllllllllllll</p>

<p>Php</p>

<p>Price: 250</p>

<p>lllllllllllllllllllllllllllllllll</p>

<p>C++</p>

<p>Price: 300</p>

<p>lllllllllllllllllllllllllllllllll</p>

<pre><code>public class CommandeAdapter extends BaseAdapter implements OnClickListener {
private Context context;

private List&lt;Commande&gt; listCommande;

public CommandeAdapter(Context context, List&lt;Commande&gt; listCommande) {
    this.context = context;
    this.listCommande = listCommande;
}

public int getCount() {
    return listCommande.size();
}

public Object getItem(int position) {
    return listCommande.get(position);
}

public long getItemId(int position) {
    return position;
}

public View getView(int position, View convertView, ViewGroup viewGroup) {
    Commande entry = listCommande.get(position);
    if (convertView == null) {
        LayoutInflater inflater = (LayoutInflater) context
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        convertView = inflater.inflate(R.layout.listitem_row, null);
    }
    TextView tvNom = (TextView) convertView.findViewById(R.id.textView1);
    tvNom.setText(entry.getNom());

    TextView tvPrixU = (TextView) convertView.findViewById(R.id.textView2);
    tvPrixU.setText(entry.getPrixU());

    TextView tvqte = (TextView) convertView.findViewById(R.id.textView4);
    tvqte.setText(entry.getQte());

    TextView tvSomme = (TextView) convertView.findViewById(R.id.textView5);
    tvSomme.setText(String.format("%.03f", entry.getSomme()));

    return convertView;
}

@Override
public void onClick(View view) {
    Commande entry = (Commande) view.getTag();
    listCommande.remove(entry);
    // listCommande.remove(view.getId());
    notifyDataSetChanged();

}

private void showDialog(Commande entry) {
    // Create and show your dialog
    // Depending on the Dialogs button clicks delete it or do nothing
}
</code></pre>

<p>}</p>
