-1

I want to open a dialog that animates from top to bottom by onlick android list item.

nurealam11
  • 537
  • 4
  • 16

3 Answers3

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!