When I click on image then custom dialog is show on Top of the screen so Please can any one suggest me that how to set custom dialog at the exact location that was clicked
Asked
Active
Viewed 163 times
-1
-
![enter image description here][1] when i am click on ![enter image description here][2] this image then i want that on this image ![enter image description here][3] this dialog is show please check these links and suggest me [1]: http://i.stack.imgur.com/5rrgU.png [2]: http://i.stack.imgur.com/fhvu5.png [3]: http://i.stack.imgur.com/uSnZx.png – NeelamGoyal Jan 25 '14 at 05:04
-
Please edit your question and include the above comment in the body of your question. – Skynet Jan 25 '14 at 05:12
-
http://stackoverflow.com/questions/4518995/positioning-a-dialog-on-screen – Vamsi Pavan Mahesh Jan 25 '14 at 05:13
-
actually i want to send the screenshot of my question in the body but there is not possible for set the image url so.Here is one comment and in this comment edited my question please read it – NeelamGoyal Jan 25 '14 at 05:16
-
@NeelamGoyal u can use twitter or dropbox/drive to share link and can post in comments – Manmohan Badaya Jan 25 '14 at 05:26
-
you can set gravity TOP for your custom dialog. – Piyush Jan 25 '14 at 05:41
-
No when i scroll the view then dialog is show at top of the screen – NeelamGoyal Jan 25 '14 at 06:12
2 Answers
0
You can check-out this link if you want to stick to custom dialog, but if you are interested then you can use pop up window instead of custom dialog, its very easy to use popup window and you can position it nice and easy.
0
For this purpose u can use PopupWindow to fit the view at location u want. u can setcontentview here as well similar to custom dialog.

Manmohan Badaya
- 2,326
- 1
- 22
- 35