我想显示一个标注。我的主布局中有一个按钮。单击此按钮后,我需要显示一个窗口弹出窗口,其中一个箭头指向单击的按钮。我试过使用Button,但这显示了一个正常的弹出窗口,我需要像从按钮中弹出的标注一样显示它。有什么建议吗?
到目前为止这是我的科

            LayoutInflater inflater = getLayoutInflater();
            View mView= inflater.inflate(R.layout.lt_popupwindow,(ViewGroup)findViewById(R.id.ltPopUpParent));
            View mView2= inflater.inflate(R.layout.main,(ViewGroup)findViewById(R.id.ltMainParent));
            PopupWindow mPopupWindow = new PopupWindow(mView,LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT,false);
            mPopupWindow.setAnimationStyle(android.R.style.Animation_Dialog);
            mPopupWindow.showAtLocation(mView2, Gravity.NO_GRAVITY, 0, 0);

最佳答案

看看这里如果你以前没有,这可能会帮助你。
Android Quick Actions UI Pattern

10-08 15:07