Image resets to original position


I have a image and 2 buttons, Button1 and Button 2.
On Button1 click I set the layout of image from position A to position B. On Button2 click, I need to change the image source which works fine but the layout is set back to position A whenever the image source changes.
I have tried SetBackgroundResource, SetImageResource and SetImageBitmap but layout of the image always returns to its original position A.
I tried to work SetBackgroundColor and background color changes but image position again changes back to original.
Any help would be appreciated.


Sign In or Register to comment.