本帖最后由 zhangle123 于 2012-11-12 18:35:02 编辑

解决方案 »

  1.   

    popwindow可以准确定位,showasLocation
      

  2.   

    这个就是仿iphone的,哥哥你去玩下iphone
      

  3.   

    popupWindow, 这个可以搞定弹窗,还可以 很好的定位
      

  4.   

    贴一段代码:       LayoutInflater mLayoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            final ViewGroup menuView = (ViewGroup) mLayoutInflater.inflate(你的自资源文件id, null, true);
            mPopupWindow  = new PopupWindow(menuView, LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT, true);
            mPopupWindow.setBackgroundDrawable(new BitmapDrawable()); 
            mPopupWindow.setOutsideTouchable(true);
            mPopupWindow.setFocusable(true);
    点击图标的时候mPopupWindow.showAsDropDown 或者 showAtLocation 即可。
      

  5.   


    恩,我的意思大致是这个意思,刚才找了一个例子测试了一下,可以,就是不晓得,是否可以不显示activity直接显示弹出窗口,自己再去试一下.你试过没有?
      

  6.   

    确认可以不显示activity,直接显示弹窗?
      

  7.   

    dialog不是弹窗吗?可以实现桌面不覆盖吗?