how can i get a variable on the imageview that i have defined in a layout.xml in the code?
thanks!
Give the ImageView an id and then use the findViewById() method
 ImageView view = (ImageView)findViewById(R.id.someid);
Note, the findViewById() method has to be called from a Context object (Activity, etc)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With