本文整理汇总了Java中cn.pedant.SweetAlert.SweetAlertDialog.PROGRESS_TYPE属性的典型用法代码示例。如果您正苦于以下问题:Java SweetAlertDialog.PROGRESS_TYPE属性的具体用法?Java SweetAlertDialog.PROGRESS_TYPE怎么用?Java SweetAlertDialog.PROGRESS_TYPE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类cn.pedant.SweetAlert.SweetAlertDialog
的用法示例。
在下文中一共展示了SweetAlertDialog.PROGRESS_TYPE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findOffLineDate
private void findOffLineDate() {
pDialog = new SweetAlertDialog(MainActivity.this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("离线数据加载中...");
pDialog.show();
mAccountBeans = SPUtils.getDataList("beans", AccountBean.class);
mTestStackAdapter = new TestStackAdapter(MainActivity.this, mAccountBeans);
mStackView.setAdapter(mTestStackAdapter);
mTestStackAdapter.notifyDataSetChanged();
new Handler().postDelayed(
new Runnable() {
@Override
public void run() {
//为什么不能把TEST_DATA拿出来单独处理一次,会出现ANR
mTestStackAdapter.updateData(Arrays.asList(DesUtil.getRandomFromArray(TEST_DATAS, mAccountBeans.size())));
pDialog.dismiss();
}
}
, 1500
);
}
示例2: exportUser
void exportUser() {
SweetAlertDialog sw=new SweetAlertDialog(getActivity(), SweetAlertDialog.PROGRESS_TYPE);
sw.show();
try {
ExcelUtil excelUtils = new ExcelUtil(jobName, modleList);
File file = excelUtils.create();
ExcelUtil.openFileByOtherApp(getActivity(), file);
if (sw.isShowing()) {
sw.dismiss();
}
} catch (Exception e) {
LogUtils.e("导出excel", e.getMessage());
if (sw.isShowing()) {
sw.dismiss();
}
}
}
示例3: initViews
@Override
public void initViews() {
Intent intent = getIntent();
String mType = intent.getStringExtra("type");
if (mType.equals("old")) {//模板
Model.ListTJobEntity modle = (Model.ListTJobEntity) intent.getSerializableExtra("job");
initModleData(modle);
} else if (mType.equals("change")) {//修改兼职传过来
String jobid = intent.getStringExtra("jobid");
llPublish.setVisibility(View.GONE);
llChange.setVisibility(View.VISIBLE);
GetSingleJobTask getSingleJobTask = new GetSingleJobTask(jobid);
getSingleJobTask.execute();
}
sweetAlertDialog = new SweetAlertDialog(PublishDetailActivity.this, SweetAlertDialog.PROGRESS_TYPE);
}
示例4: initViews
@Override
public void initViews() {
tvTitle.setText("结算");
tvJobName.setText(jobName);
tvJobWages.setText(moneyStr);
adapter = new CalculateAdapter(userList, isSelected,this, String.valueOf(money), this);
mLayoutManager = new LinearLayoutManager(this);
//设置布局管理器
list.setLayoutManager(mLayoutManager);
//设置adapter
list.setAdapter(adapter);
//设置Item增加、移除动画
list.setItemAnimator(new DefaultItemAnimator());
//添加分割线
sweetAlertDialog = new SweetAlertDialog(CalculateActivity.this, SweetAlertDialog.PROGRESS_TYPE);
}
示例5: onValidationSucceeded
@Override
public void onValidationSucceeded() {
SweetAlertDialog loadingDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
String topicTitle = topicTitleView.getText().toString();
String topicBody = topicBodyView.getText().toString();
int nodeId = Integer.parseInt(selectNodeView.getTag().toString());
topic.setTitle(topicTitle);
topic.setBody(topicBody);
topic.setNodeId(nodeId);
getPresenter().publish(topic, loadingDialog);
loadingDialog.getProgressHelper().setBarColor(Color.parseColor("#4394DA"));
loadingDialog.setContentText(getString(R.string.submitting));
loadingDialog.setCancelable(false);
loadingDialog.show();
}
示例6: validationContent
public void validationContent() {
SweetAlertDialog errorDialog = new SweetAlertDialog(this, SweetAlertDialog.ERROR_TYPE);
SweetAlertDialog loadingDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
String reply = topicBodyView.getText().toString();
if (reply.trim().length() < 2) {
errorDialog.setTitleText("Oops...");
errorDialog.setContentText(getString(R.string.body_input_error));
errorDialog.show();
return;
}
loadingDialog.getProgressHelper().setBarColor(Color.parseColor("#4394DA"));
loadingDialog.setContentText(getString(R.string.submitting));
loadingDialog.setCancelable(false);
loadingDialog.show();
getPresenter().request(topicId, reply, loadingDialog);
}
示例7: disableEdit
public void disableEdit() {
mDisableEdit = true;
mPersonalNameEt.setEnabled(false);
mPersonalNickEt.setEnabled(false);
mPersonalGenderTv.setEnabled(false);
mPersonalAreaEt.setEnabled(false);
mPersonalJobEt.setEnabled(false);
mPersonalHobbyEt.setEnabled(false);
mPersonalLanguageEt.setEnabled(false);
mPersonalSignEt.setEnabled(false);
mSubmitDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
mSubmitDialog.setTitleText(getString(R.string.ct_data_submiting));
mSubmitDialog.setCancelable(false);
mSubmitDialog.show();
}
示例8: HMultimedia
public HMultimedia(AdapterMultimedia adapterMultimedia, int offset, int idProyecto, Context context) {
this.adapterMultimedia = adapterMultimedia;
this.offset = offset;
this.idProyecto =idProyecto;
this.context = context;
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
}
示例9: HUsuarioInteresa
public HUsuarioInteresa(int idUsuario, List<Integer> intereses, Context context, AdapterAreasInteres back, Set<Integer> posicionAreasInicial, ArrayList<Area> areasBack) {
this.idUsuario = idUsuario;
this.intereses = intereses;
this.context = context;
this.back = back;
this.areasBack =areasBack;
this.posicionAreasInicial = posicionAreasInicial;
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
}
示例10: HProyectos
public HProyectos(AdapterProyecto adapterProyecto, int offset, Context context) {
this.adapterProyecto = adapterProyecto;
this.offset = offset;
this.context=context;
proyectos = new ArrayList<>();
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
}
示例11: HSeguir
public HSeguir(boolean eleminar, Usuario seguido, Context context, Button seguirUsuario, TextView seguidoresUsuario) {
this.seguido = seguido;
this.context=context;
this.seguirUSuario=seguirUsuario;
this.seguidoresUsuario=seguidoresUsuario;
this.seguidor = Sesion.getUsuario(context);
this.eleminar = eleminar;
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
}
示例12: showUploadArticleProgress
@Override
public void showUploadArticleProgress() {
dialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
dialog.setTitleText(getString(R.string.now_releasing_article));
dialog.setCancelable(false);
dialog.show();
}
示例13: onPreExecute
@Override
protected void onPreExecute() {
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
pDialog.show();
}
示例14: onPreExecute
@Override
protected void onPreExecute() {
avances = new ArrayList<>();
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
pDialog.show();
}
示例15: HNotificaciones
public HNotificaciones(AdapterNotificacion adapterNotificacion, int offset, Context context) {
this.adapterNotificacion = adapterNotificacion;
this.offset = offset;
this.context = context;
pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Cargando...");
pDialog.setCancelable(false);
notificacions = new ArrayList<>();
}