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


Java SweetAlertDialog.setTitleText方法代码示例

本文整理汇总了Java中cn.pedant.SweetAlert.SweetAlertDialog.setTitleText方法的典型用法代码示例。如果您正苦于以下问题:Java SweetAlertDialog.setTitleText方法的具体用法?Java SweetAlertDialog.setTitleText怎么用?Java SweetAlertDialog.setTitleText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cn.pedant.SweetAlert.SweetAlertDialog的用法示例。


在下文中一共展示了SweetAlertDialog.setTitleText方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onOptionsItemSelected

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();

    switch (id) {
        case R.id.menu_share:
            onShareItemSelected();
            break;

        case R.id.menu_report:
            SweetAlertDialog successDialog = new SweetAlertDialog(this, SweetAlertDialog.SUCCESS_TYPE);

            successDialog.setTitleText(getString(R.string.success_title));
            successDialog.setContentText(getString(R.string.report_success));
            successDialog.show();

            break;
    }
    return super.onOptionsItemSelected(item);
}
 
开发者ID:CycloneAxe,项目名称:phphub-android,代码行数:21,代码来源:TopicDetailsActivity.java

示例2: onValidationFailed

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
@Override
public void onValidationFailed(List<ValidationError> errors) {
    final SweetAlertDialog errorDialog = new SweetAlertDialog(this, SweetAlertDialog.ERROR_TYPE);
    for (ValidationError error : errors) {
        View view = error.getView();
        String message = error.getCollatedErrorMessage(this);

        if (view instanceof EditText) {
            ((EditText) view).setError(message);
        } else {
            errorDialog.setTitleText("Oops...");
            errorDialog.setContentText(message);
            errorDialog.show();
            return;
        }
    }
}
 
开发者ID:CycloneAxe,项目名称:phphub-android,代码行数:18,代码来源:TopicPublishActivity.java

示例3: validationContent

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
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,代码行数:20,代码来源:TopicReplyActivity.java

示例4: HMultimedia

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
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,代码行数:11,代码来源:HMultimedia.java

示例5: HUsuarioInteresa

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
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,代码行数:14,代码来源:HUsuarioInteresa.java

示例6: HProyectos

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
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,代码行数:11,代码来源:HProyectos.java

示例7: HSeguir

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
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,代码行数:13,代码来源:HSeguir.java

示例8: onPreExecute

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
@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,代码行数:9,代码来源:HSubirImagen.java

示例9: onPreExecute

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
@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,代码行数:10,代码来源:HAvances.java

示例10: HNotificaciones

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
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,代码行数:11,代码来源:HNotificaciones.java

示例11: HPublicaciones

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
public HPublicaciones(Context context) {

        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,代码来源:HPublicaciones.java

示例12: HPublicacion

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
public HPublicacion(Context context, Publicacion publicacion,int tipo,int id) {
    this.context = context;
    this.publicacion = publicacion;
    this.tipo = tipo;
    this.id =id;
    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,代码来源:HPublicacion.java

示例13: HBuenaIdea

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
public HBuenaIdea(boolean eliminar, Context context, Proyecto proyecto, ImageView buenaidea, TextView buenaidea_contador) {
    this.eliminar = eliminar;
    this.context=context;
    this.proyecto=proyecto;
    this.buenaidea=buenaidea;
    this.buenaidea_contador=buenaidea_contador;
    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,代码来源:HBuenaIdea.java

示例14: showDefaultDialog

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
public void showDefaultDialog(Activity activity,String content)
{
    dialog=new SweetAlertDialog(activity);
    dialog.changeAlertType(SweetAlertDialog.PROGRESS_TYPE);
    dialog.getProgressHelper().setBarColor(Color.parseColor("#2f76d4"));
    dialog.setTitleText(content);
    dialog.setCancelable(false);
    dialog.show();
}
 
开发者ID:CuiBow,项目名称:dagger_mvp,代码行数:10,代码来源:SweetAlertUtils.java

示例15: HOcuparVacante

import cn.pedant.SweetAlert.SweetAlertDialog; //导入方法依赖的package包/类
public HOcuparVacante(Context context, int idEspecialidad, SolicitudUnion solicitudUnion, AdapterSolicitudes adapterSolicitudes) {

        this.context = context;
        this.solicitudUnion=solicitudUnion;
        this.idVacante = solicitudUnion.getIdVacante();
        this.idProyecto=solicitudUnion.getIdProyecto();
        this.idUsuario=solicitudUnion.getIdUsuarioSolicitante();
        this.adapterSolicitudes = adapterSolicitudes;
        this.idEspecialidad=idEspecialidad;
        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,代码行数:15,代码来源:HOcuparVacante.java


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