我不想关闭弹出窗口,而是将其隐藏在屏幕外的位置-width,-heigt。当我尝试更新屏幕外的弹出窗口时,它会在父视图的边界处停止。如何在屏幕外或半屏幕外更新它?
View view = LayoutInflater.from(getBaseContext()).inflate(R.layout.mylayout,null);
pop = new PopupWindow(this);
pop.setTouchable(false);
pop.setHeight(200);
pop.setWidth(200);
pop.setContentView(view);
pop.showAtLocation(myparentview, 0, 50, 50);
pop.update(-200,-200,-1,-1);
问题快照: