c# - ImageView losing left- and top-property after interacting with widgets -


i'm programming android app in user changing position of imageview choosing list of predefined positions. positions can changed using spinner.

the position updated function called in spinner_itemselected. looks this:

        public void setnewposition(imageview img, int[] coordinates)     {         img.left = coordinates[0];         img.top = coordinates[1];      } 

the position set correctly. after interact other widget, imageview set initial position, defined in main.axml. ideas how can prevent imageview doing that?

thanks lot


Comments

Popular posts from this blog

c++ - Fill edges and center of array/vector with different values -

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -