I want to open a dialog that animates from top to bottom by onlick android list item.
Asked
Active
Viewed 264 times
-1
-
Maybe [the documentation](http://developer.android.com/guide/topics/ui/menus.html#PopupMenu) might be useful. – Blo Apr 27 '14 at 06:02
-
see http://stackoverflow.com/questions/9467026/change-dialog-position-on-the-screen – Shayan Pourvatan Apr 27 '14 at 06:10
3 Answers
0
You need to create a PopupMenu
and set an anchor view of the list item . The popup will appear below the anchor if there is room, or above it if there is not.
PopupMenu popupMenu = new PopupMenu(this, itemView);

Libin
- 16,967
- 7
- 61
- 83
0
Try this:
Android: Create a Quick Action Menu
The view which can be the anchor will be the view you obtain in the OnItemSelectedListener

Community
- 1
- 1

Vicky Kapadia
- 6,025
- 2
- 24
- 30
0
You can this Quick action pattern in Android and simple implemention. . I expect you will get your solution, hopefully.Best of luck!