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

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -