當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。