title: How to change the color of content text in Alert Dialog box android
body: <p>I am stuck and i am not getting how to do. In my apps there is an AlertDialog Box with List View containing an image and a text but The text is coming white in color and is not visible i want to change the color of the Text in the ListView.</p>
  
  <p>Please help...</p>
  
  <p>The snippets are as follows:</p>
  
  <pre><code>  final String[] items = new String[]{"From Gallery", "From Camera"};
          final Integer[] icons = new Integer[]{R.drawable.camera_picker, R.drawable.gallery_picker};
          ListAdapter adapter = new CameraPickAdapter(StataComplaintActivity.this, items, icons);
          final AlertDialog.Builder builder = new AlertDialog.Builder(this, AlertDialog.THEME_HOLO_LIGHT);
          //AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this, R.style.CustomAlertDialogTheme));
  
          builder.setTitle("Select Image From")
                  .setAdapter(adapter, new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int item) {
                          if (item == 0) {
                              loadImageFromGallery();
                          } else if (item == 1) {
                              takePictureIntent();
                          } else {
                          }
                      }
                  }).show();
  </code></pre>
  
  <p><strong>CameraPickAdapter.java</strong></p>
  
  <pre><code>public class CameraPickAdapter extends ArrayAdapter&lt;String&gt; {
  
      private List&lt;Integer&gt; images;
  
      public CameraPickAdapter(Context context, List&lt;String&gt; items, List&lt;Integer&gt; images) {
          super(context, android.R.layout.select_dialog_item, items);
          this.images = images;
      }
  
      public CameraPickAdapter(Context context, String[] items, Integer[] images) {
          super(context, android.R.layout.select_dialog_item, items);
          this.images = Arrays.asList(images);
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          View view = super.getView(position, convertView, parent);
          TextView textView = (TextView) view.findViewById(android.R.id.text1);
  
          textView.setCompoundDrawablesWithIntrinsicBounds(images.get(position), 0, 0, 0);
          textView.setCompoundDrawablePadding(
                  (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 12, getContext().getResources().getDisplayMetrics()));
          return view;
      }
  
  }
  </code></pre>
  
  <p>The Dialog is as:</p>
  
  <p><img src="https://i.stack.imgur.com/E6sZt.png" alt="enter image description here"></p>