@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { final NetMusicEntry entry = (NetMusicEntry) mHotMusicListView.getItemAtPosition(position); String songId = entry.getSong_id(); loadingDialog.show(); MyHttpUtil.getDefaultHttpUtil() .send( HttpRequest.HttpMethod.GET, NetAPIEntry.getUrlBySongId(songId), new RequestCallBack<String>() { @Override public void onSuccess(ResponseInfo<String> stringResponseInfo) { loadingDialog.cancel(); entry.setFile_link(NetMusicEntry.getFileLink(stringResponseInfo.result)); mPopupWindow = PopupWindowUtil.createPopupWindow( getActivity(), R.layout.layout_popupwindow_download); mPopupWindow.showAtLocation( getActivity().getWindow().getDecorView(), Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0); initPopBtnViewAndListener(entry); } @Override public void onFailure(HttpException e, String s) { loadingDialog.cancel(); } }); }