content: package com.amatellanes.android;
  
  import android.app.AlertDialog;
  import android.app.Dialog;
  import android.content.DialogInterface;
  import android.os.Bundle;
  import android.support.v4.app.DialogFragment;
  
  public class SingleChoiceListDialog extends DialogFragment {
  
  	@Override
  	public Dialog onCreateDialog(Bundle savedInstanceState) {
  		AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
  		// Set the dialog title
  		builder.setTitle("Selecciona un color...")
  				// Specify the list array, the items to be selected by default
  				// (null for none),
  				// and the listener through which to receive callbacks when
  				// items are selected
  				.setSingleChoiceItems(R.array.array_colors, 0,
  						new DialogInterface.OnClickListener() {
  
  							@Override
  							public void onClick(DialogInterface arg0, int arg1) {
  
  							}
  						})
  				// Set the action buttons
  				.setPositiveButton(android.R.string.ok,
  						new DialogInterface.OnClickListener() {
  							@Override
  							public void onClick(DialogInterface dialog, int id) {
  
  							}
  						})
  				.setNegativeButton(android.R.string.cancel,
  						new DialogInterface.OnClickListener() {
  							@Override
  							public void onClick(DialogInterface dialog, int id) {
  
  							}
  						});
  
  		return builder.create();
  	}
  }
  