title: Android AlertDialog.Builder setSingleChoiceItems with custom cell style
body: <p>I want to create a custom cell that remove the "button" in the right hand side of the cell.</p>
  
  <p><img src="https://i.stack.imgur.com/v6JbX.png" alt="image1"> <img src="https://i.stack.imgur.com/lbD9t.png" alt="image2"></p>
  
  <p>for the AlertDialog, from this <a href="https://stackoverflow.com/questions/2795300/how-to-implement-a-custom-alertdialog-view">link</a>, I inflated the cell from xml but it only appear outside the listView of the setSingleChoiceItems.</p>
  
  <p>my code:</p>
  
  <pre><code>AlertDialog.Builder builder;
  
      int sdk = android.os.Build.VERSION.SDK_INT;
      if(sdk &lt; android.os.Build.VERSION_CODES.HONEYCOMB) {
          builder = new AlertDialog.Builder(new ContextThemeWrapper(getActivity(), android.R.style.Theme_Dialog));
      } else {
          builder = new AlertDialog.Builder(new ContextThemeWrapper(getActivity(), android.R.style.Theme_Holo_Dialog_NoActionBar_MinWidth));
      }
  
      final CharSequence[] choiceList = {
              getActivity().getResources().getString(R.string.opt_remind),
              getActivity().getResources().getString(R.string.opt_calendar)};
  
      builder.setSingleChoiceItems(
              choiceList, 
              -1, // does not select anything
              new DialogInterface.OnClickListener() {
  
                  @Override
                  public void onClick(DialogInterface dialog, int index) {
                      switch (index) {
                      case 0: // remind me
                          //
                          break;
                      case 1: // add to calendar
                          //
                          break;
                      default:
                          break;
                      }
                      dialog.dismiss();
                  }
              });
      builder.setCancelable(true);
      builder.setNegativeButton(getActivity().getResources().getString(R.string.opt_cancel), new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {
              dialog.dismiss();
          }
      });
      AlertDialog alert = builder.create();
      alert.show();
  </code></pre>
  
  <p>Thanks for helping!</p>
  
  <p>Best regards,
  Sythus</p>