当前位置: 首页>>代码示例>>Java>>正文


Java SweetAlertDialog.PROGRESS_TYPE属性代码示例

本文整理汇总了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
        );
    }
 
开发者ID:paradoxie,项目名称:DizzyPassword,代码行数:23,代码来源:MainActivity.java

示例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();
        }
    }
}
 
开发者ID:woniukeji,项目名称:jianguo,代码行数:17,代码来源:FilterFragment.java

示例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);
}
 
开发者ID:woniukeji,项目名称:jianguo,代码行数:16,代码来源:PublishDetailActivity.java

示例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);
    }
 
开发者ID:woniukeji,项目名称:jianguo,代码行数:17,代码来源:CalculateActivity.java

示例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();
}
 
开发者ID:CycloneAxe,项目名称:phphub-android,代码行数:18,代码来源:TopicPublishActivity.java

示例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);
}
 
开发者ID:CycloneAxe,项目名称:phphub-android,代码行数:19,代码来源:TopicReplyActivity.java

示例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();
}
 
开发者ID:MoonRune,项目名称:CuiTrip,代码行数:17,代码来源:SelfActivity.java

示例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);
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:10,代码来源:HMultimedia.java

示例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);
    }
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:13,代码来源:HUsuarioInteresa.java

示例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);
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:10,代码来源:HProyectos.java

示例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);
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:12,代码来源:HSeguir.java

示例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();
}
 
开发者ID:weimin96,项目名称:shareNote,代码行数:7,代码来源:EditorActivity.java

示例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();
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:8,代码来源:HCrearAvance.java

示例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();
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:9,代码来源:HAvances.java

示例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<>();
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:10,代码来源:HNotificaciones.java


注:本文中的cn.pedant.SweetAlert.SweetAlertDialog.PROGRESS_TYPE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。