最终解决:
int p1 = Util.dip2px(168);int[] location = new int[2];parent.getLocationInWindow(location);int l1 = location[0];int l2 = location[1];if (l1 == 0 || l2 == 0) { Rect rect = new Rect(); parent.getGlobalVisibleRect(rect); l1 = rect.left; l2 = rect.top;}pop.showAtLocation(parent, Gravity.NO_GRAVITY, l1 - p1, l2);
新闻热点
疑难解答