hello, how can i get a variable on the imageview that i have defined in a layout.xml in the code?
thanks!
hello, 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 = findViewById(R.id.someid);
Note, the findViewById() method has to be called from a Context object (Activity, etc)