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 -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -