title: Custom infowindow with google maps api v2
body: <p>I can customize the content of the infoWindow with a simple block of code:</p>
  
  <pre><code> private GoogleMap mMap;
   mMap.setInfoWindowAdapter(new InfoWindowAdapter() {
  
          @Override
          public View getInfoWindow(Marker arg0) {
              return null;
          }
  
          @Override
          public View getInfoContents(Marker arg0) {
  
              View v = getLayoutInflater().inflate(R.layout.custom_infowindow, null);
              return v;
  
          }
      });
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:background="#55000000" &gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" 
          android:text="HELLO"
          android:textColor="#FF0000"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But this changes only the content and not the infoWindow itself. It still stays white with a small shadow on the bottom and now a red HELLO text is visible with black bg. I want to change this default infoWindow to a transparent black rectangle. How can I do this?</p>
  
  <p><img src="https://i.stack.imgur.com/xNRdu.png" alt="enter image description here"></p>