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