Search in sources :

Example 1 with AlertDialog

use of org.holoeverywhere.app.AlertDialog in project HoloEverywhere by Prototik.

the class _RingtonePickerDialog method onCreateDialog.

private AlertDialog onCreateDialog(Builder builder) {
    builder.setPositiveButton(android.R.string.ok, this);
    builder.setNegativeButton(android.R.string.cancel, this);
    builder.setOnPrepareListViewListener(this);
    builder.setSingleChoiceItems(cursor, -1, MediaColumns.TITLE, new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            clickedPos = which;
            playRingtone(which, 0);
        }
    });
    builder.setTitle(getDialogTitle());
    builder.setOnCancelListener(this);
    AlertDialog dialog = builder.create();
    dialog.setOnDismissListener(this);
    return dialog;
}
Also used : AlertDialog(org.holoeverywhere.app.AlertDialog) OnClickListener(android.content.DialogInterface.OnClickListener) DialogInterface(android.content.DialogInterface)

Example 2 with AlertDialog

use of org.holoeverywhere.app.AlertDialog in project HoloEverywhere by Prototik.

the class DialogsAlertDialogFragment method onCreateDialog.

@Override
public AlertDialog onCreateDialog(Bundle savedInstanceState) {
    AlertDialog.Builder builder = new AlertDialog.Builder(getSupportActivity());
    builder.setTitle(R.string.library_name);
    builder.setIcon(R.drawable.icon);
    prepareBuilder(builder);
    return builder.create();
}
Also used : AlertDialog(org.holoeverywhere.app.AlertDialog) Builder(org.holoeverywhere.app.AlertDialog.Builder) Builder(org.holoeverywhere.app.AlertDialog.Builder)

Example 3 with AlertDialog

use of org.holoeverywhere.app.AlertDialog in project little-bear-dictionary by daimajia.

the class RingtonePicker method onCreateDialog.

private AlertDialog onCreateDialog(Builder builder) {
    builder.setPositiveButton(android.R.string.ok, this);
    builder.setNegativeButton(android.R.string.cancel, this);
    builder.setOnPrepareListViewListener(this);
    builder.setSingleChoiceItems(cursor, -1, MediaColumns.TITLE, new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            clickedPos = which;
            playRingtone(which, 0);
        }
    });
    builder.setTitle(getDialogTitle());
    builder.setOnCancelListener(this);
    AlertDialog dialog = builder.create();
    dialog.setOnDismissListener(this);
    return dialog;
}
Also used : AlertDialog(org.holoeverywhere.app.AlertDialog) OnClickListener(android.content.DialogInterface.OnClickListener) DialogInterface(android.content.DialogInterface)

Aggregations

AlertDialog (org.holoeverywhere.app.AlertDialog)3 DialogInterface (android.content.DialogInterface)2 OnClickListener (android.content.DialogInterface.OnClickListener)2 Builder (org.holoeverywhere.app.AlertDialog.Builder)1