Get Absolute View Position in ListView

后端 未结 3 1655
[愿得一人]
[愿得一人] 2021-02-09 14:29

I am trying to make a popup window appear above/below an item that is clicked inside of a ListView. However, the problem is that the View that is coming in from the OnItemClick

3条回答
  •  日久生厌
    2021-02-09 14:52

    for those who stick on this issue try use this code snippet

    popWindow.showAsDropDown(v);//v is your listview or recyclerview item Element that clicked.
    

    hope this help.

提交回复
热议问题