title: Custom row Layout for a Multiple Choice Dialog
body: <p>I would like to implement a <code>Custom Multiple Choice Dialog</code>, so following the directions from <a href="https://stackoverflow.com/questions/19281945/multiple-choice-alert-dialog-with-custom-row-layout">this answer</a>, this is what I did:</p>
  
  <p>I created the <code>xml</code> for my row, which is a <code>CheckedTextView</code></p>
  
  <pre><code>&lt;CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/text1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:textAppearance="?android:attr/textAppearanceListItemSmall"
      android:gravity="center_vertical"
      android:paddingLeft="16dp"
      android:paddingRight="16dp"
      android:textColor="#000000"
      android:fontFamily="sans-serif-condensed"
      style="?android:textAppearanceSmall"
      android:background="?android:attr/activatedBackgroundIndicator"
      android:minHeight="?android:attr/listPreferredItemHeightSmall"
      android:checkMark="?android:attr/listChoiceIndicatorMultiple"
      android:clickable="true"/&gt;
  </code></pre>
  
  <p>Now, my <code>Dialog</code></p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
  builder.setAdapter(
                  new ArrayAdapter&lt;String&gt;(getActivity(),
                          R.layout.dialog_list_item, tables), null)
          // Set the action buttons
                  .setPositiveButton(android.R.string.ok,
                          new DialogInterface.OnClickListener() {
                              @Override
                              public void onClick(DialogInterface dialog, int id) {
                                  dialog.dismiss();
                              }
                          });
  AlertDialog alertDialog = builder.create();
  
  alerDialog.show();
  </code></pre>
  
  <p>As you can see, I have not implemented an <code>setOnItemClickListener</code> yet, but I do not know how though. However, the <code>Dialog</code> looks fine. How can I call a ClickListener for each of the <code>CheckedTextView</code>?</p>
  
  <p>Than you very much</p>