I am working on a shopping cart assignment for that I have created a custom ListView that contains the Picture, Price and Add to Cart button in each row. I also have a textview
we have to set value runOnUiThread of that Controls. like this.. May this help you.
btn.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v) {
count++;
setTimertext(count);
}
});
public void setTimertext(String strValue) {
runOnUiThread(new Runnable() {
public void run() {
txt.setText(String.valueOf(strValue));
}
});
}