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;
}
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();
}
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;
}
Aggregations