Resize height of Infowindow
<p>I have a Google map which is showing the current location and place name in InfoWindow. It's working well, but the problem is when the Place name is too long, at that time, the whole text is not showing properly in InfoWindow like <a href="http://i.stack.imgur.com/aTtpA.png" rel="nofollow">this</a>. How can I resize this Infowindow?
  My code is below:</p>

<pre><code>private class CustomInfoWindowAdapter implements GoogleMap.InfoWindowAdapter {

        private View view;

        public CustomInfoWindowAdapter() {
            view = getLayoutInflater().inflate(R.layout.info_window, null);

            view.setLayoutParams(new RelativeLayout.LayoutParams(500, RelativeLayout.LayoutParams.WRAP_CONTENT));
        }

        @Override
        public View getInfoContents(Marker marker) {

            if (CheckIn.this.marker != null &amp;&amp; CheckIn.this.marker.isInfoWindowShown()) {
                CheckIn.this.marker.hideInfoWindow();
                CheckIn.this.marker.showInfoWindow();
            }
            return null;
        }

        @Override
        public View getInfoWindow(final Marker marker) {
            CheckIn.this.marker = marker;

            String url = null, isLoaded = "0";

            /*if (marker.getId() != null &amp;&amp; markers != null &amp;&amp; markers.size() &gt; 0) {
                if (markers.get(marker.getId()) != null &amp;&amp; markers.get(marker.getId()) != null) {
                    url = markers.get(marker.getId());
                    isLoaded = markers.get(marker.getId() + marker.getTitle());
                }
            }*/
            final ImageView imgAddress = ((ImageView) view.findViewById(R.id.imgAddress));

            final String title = marker.getTitle();

            final CustomTextView txtTitle = ((CustomTextView) view.findViewById(R.id.txtTitle));
            if (title != null) {
                /*txtTitle.setText("La Brasserie Bordelaise");*/
                mProgressDialog.dismiss();
                txtTitle.setText(currentPlaceName);
                txtTitle.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Toast.makeText(CheckIn.this, title, Toast.LENGTH_LONG).show();
                    }
                });
            } else {
                txtTitle.setText("");
            }

            return view;
        }
    }
</code></pre>

<p>my xml is below</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:customFont="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"&gt;


    &lt;RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="@dimen/margin_120"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="@dimen/margin_30"
        android:layout_marginRight="@dimen/margin_30"
        android:background="@drawable/bg_info_window"&gt;

        &lt;RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_5"&gt;

            &lt;RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="3dp"
                android:layout_marginLeft="@dimen/margin_5"
                android:layout_marginRight="@dimen/margin_5"
                android:layout_toLeftOf="@+id/imgAddress"&gt;

                &lt;com.widget.CustomTextView
                    android:id="@+id/txtTitle"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="5dp"
                    android:inputType="textMultiLine"
                    android:maxLines="2"
                    android:singleLine="false"
                    android:text="aaaa"
                    android:textColor="@android:color/black"
                    android:textSize="@dimen/text_size_16"
                    customFont:fontTextStyle="3" /&gt;
                &lt;!--android:text="La Brasserie Bordelaise"--&gt;


                &lt;LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/txtTitle"
                    android:layout_marginLeft="@dimen/margin_5"
                    android:orientation="horizontal"&gt;

                    &lt;ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/margin_5"
                        android:src="@drawable/ic_person" /&gt;

                    &lt;com.widget.CustomTextView
                        android:id="@+id/txtTotalPeople"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="5dp"
                        android:inputType="textMultiLine"
                        android:singleLine="false"
                        android:text="aaaa"
                        android:textColor="@color/colorDetailGray"
                        android:textSize="@dimen/text_size_medium"
                        customFont:fontTextStyle="3" /&gt;
                &lt;/LinearLayout&gt;
            &lt;/RelativeLayout&gt;

            &lt;ImageView
                android:id="@+id/imgAddress"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:contentDescription="@string/app_name"
                android:padding="@dimen/padding_10"
                android:src="@drawable/ic_right_arrow" /&gt;
        &lt;/RelativeLayout&gt;
    &lt;/RelativeLayout&gt;
&lt;/RelativeLayout&gt;
</code></pre>