one id for more than one widget android

Posted by Labeeb P on Stack Overflow See other posts from Stack Overflow or by Labeeb P
Published on 2011-01-05T07:44:56Z Indexed on 2011/01/05 7:53 UTC
Read the original article Hit count: 241

Filed under:
|

Hi,
Is there any way to refer more than one widget (ui controls) by a single id
For example
i have many ImageView with same android:id="myimageview"
And in my activity

 myimageview = (ImageView)findViewById(R.id.myimageview);

So if i set an image using

myimageview.setImageBitmap(somebitmap);  

i need that image in all of my Imageview with id myimageview
But when i tried this only one of imageview got this change.
Any idea to do this.
Thank you.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-widget