Android - PopupWindow above a specific view

前端 未结 8 520
孤城傲影
孤城傲影 2020-12-30 23:50

I am developing an application for Android and I am using a popup window when the user clicks a specific menu bar object(consisting of small images lined up horizontally) on

8条回答
  •  醉酒成梦
    2020-12-30 23:59

    you can display the popup always above the anchor by following

    popupWindow.showAsDropDown(anchor, 0, -anchor.getHeight()-popupView.getHeight);
    

提交回复
热议问题