title: imageView not displaying in alertDialog
body: <p>I have a pop up that I populate through my custom xml. I want an icon and next to the icon, I want a switch.
  The custom xml looks has this code in it:</p>
  
  <pre><code>&lt;!-- alertdialog_menu.xml --&gt;
  &lt;LinearLayout
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:weightSum="1"
      android:layout_marginStart="5dp"
      android:layout_marginLeft="5dp"&gt;
  
      &lt;ImageView
          android:id="@+id/imageView"
          android:layout_width="0dp"
          android:layout_height="32dp"
          android:layout_weight="0.10"
          app:srcCompat="@mipmap/ic_satellite_black_24dp"
          android:scaleType="fitXY"/&gt;
  
      &lt;Switch
         android:id="@+id/satelliteSwitch"
         android:layout_width="0dp"
         android:layout_height="36dp"
         android:layout_weight="0.90"
         android:text="Satellite"
         android:textSize="22sp"/&gt;
  </code></pre>
  
  <p>
  And this below is my java code that I use to display the popup.</p>
  
  <pre><code>LayoutInflater li = LayoutInflater.from(this);
  View promptsView = li.inflate(R.layout.alertdialog_menu, null);
  AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
  alertDialogBuilder.setView(promptsView);
  alertDialogBuilder.create().show();
  </code></pre>
  
  <p>This is what I see:
  <a href="https://i.stack.imgur.com/wV8gm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wV8gm.jpg" alt="enter image description here"></a></p>
  
  <p>I should see the icon imageView to the left of the satellite imageview, but instead I see empty white space.</p>