android PopupWindow

View loadingView = this.getLayoutInflater().inflate(R.layout.loading, null); PopupWindow loaddingPopup = new PopupWindow(loadingView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); loaddingPopup.setAnimationStyle(R.style.popupWindow); //配置动画 loaddingPopup.update(); loaddingPopup.showAtLocation(findViewById(R.id.btnRefresh), Gravity.CENTER, 0, 0); //显示在中间 配置一个animate……