How to change text in edit text which is embedded in a list view. i want to the change the text’s value on button click
holder.txtQty.setTag(position);
holder.plus.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String val = holder.txtQty.getText().toString();
Float f = new Float(val);
f = f + 1;
holder.txtQty.setText(f.toString().replace(".0", "").trim());
}
});
but on this only the first and last rows edit text change . i need the corresponding edit text to change
I would get the position in the list of the text you wish to change, write a public method to replace the content at that position and then notify the custom adapter that the data set has changed.
For example: