本文整理匯總了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<>();
}