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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -