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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -