one id for more than one widget android
- by Labeeb P
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.