How change position of popup menu on android overflow button?

后端 未结 5 2143
再見小時候
再見小時候 2020-12-06 01:46

I just like to implement somethings same as popup menu in the Gmail app, anchored to the overflow button at the top-right. for that I used the same code as google tutorial f

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 02:18

    Maybe you might consider using PopupWindow instead.

    popupwindow.showAsDropDown(view,x,y);
    

    Here x and y is position of popup window relative to your view.

提交回复
热议问题