thriputapriya
08-09-2004, 03:51 AM
Hi Antun,
Here i have problem in my example.I can get the real x and y position of a view by using getBounds() method, and these values are stored in database.
And again i retrieve these x and y values from the database for displaying(for display purpose i used First method: of calculation for exact position of old image i.e lzView.setX(realx+lzView.width/2);lzView.setY(realy+lzView.height/2),Second method:if i set just databse values are realx and realy to the image i won't get correct image display, so i used first method) the same image.
But i am founding strange behaviour when i mousedown on displayed image,the real x and y position values are different even without replacing or dragging the image.Why it occurs?But displayed image position is exactly same as old one.Could you give me an idea what values should i use for displaying for same image.
Thanks in advance,
Here i have problem in my example.I can get the real x and y position of a view by using getBounds() method, and these values are stored in database.
And again i retrieve these x and y values from the database for displaying(for display purpose i used First method: of calculation for exact position of old image i.e lzView.setX(realx+lzView.width/2);lzView.setY(realy+lzView.height/2),Second method:if i set just databse values are realx and realy to the image i won't get correct image display, so i used first method) the same image.
But i am founding strange behaviour when i mousedown on displayed image,the real x and y position values are different even without replacing or dragging the image.Why it occurs?But displayed image position is exactly same as old one.Could you give me an idea what values should i use for displaying for same image.
Thanks in advance,