加载Loading的popupwindow
public class LoadingShow extends PopupWindow {
private ImageView iv_loading;
private TextView tv_content;
private Activity context;
private LoadingShow(Builde builde) {
super(builde.context);
this.context = builde.context;
setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
setWidth(ViewGroup.LayoutParams.WRAP_CONTENT);
setFocusable(false);
setOutsideTouchable(false);
setBackgroundDrawable(new BitmapDrawable());
initView(builde);
}
private void initView(Builde builde) {
View view = LayoutInflater.from(context).inflate(R.layout.popupwindow_loading, null);
iv_loading = view.findViewById(R.id.iv_loading);
tv_content = view.findViewById(R.id.tv_content);
if (!TextUti