how to update or change images of imageview dynamically in android? -
is possible update imageview diffrent images within specific time using timer or thread ?
imageview image = (imageview) findviewbyid(r.id.test_image); image.setimageresource(r.drawable.xxx);
use above code set image image view , use thread can change contents in ui bascially thing this
public void onclick(view v) { new thread(new runnable() { public void run() { imageview image = (imageview) findviewbyid(r.id.test_image); image.setimageresource(r.drawable.xxx); } }).start(); }
Comments
Post a Comment