1,DialogLoadingUtil 类
public class DialogLoadingUtil {
private Context context;
public DialogLoadingUtil(Context context){
this.context=context;
}
@SuppressLint("NewApi")
public Dialog showDialog(){
Dialog dialog=new Dialog(context);
dialog = new Dialog(context, R.style.loading);
View view=View.inflate(context, R.layout.loadinglayout, null);
ImageView iv_anim=(ImageView) view.findViewById(R.id.iv_anim);