title: Android: Map size of one activity takes the map size of another activity
body: <p>In My Map project , I have a map which occupies whole screen of the device in Main Activity. And I have some pins on the Map. If we press the pin ,it will lead to another Activity. There I have a map whose size is one third of the screen size. If we come to Main Activity from the another activity. </p>
  
  <p><strong>The Map in the Main Activity takes the size of Map in the another activity.</strong></p>
  
  <p>My Main activity xml is
  &lt;</p>
  
  <pre><code>?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/mainlayout"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true" &gt;
  
          &lt;EditText
              android:id="@+id/search"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:ems="10" &gt;
  
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
  
          &lt;Button
              android:id="@+id/submit"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="3"
              android:text="Search" /&gt;
      &lt;/LinearLayout&gt;
  
  
  
      &lt;com.xxx.yyy.FireMapView
          android:id="@+id/mapview"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/linearLayout1"
          android:apiKey="xxxxxxxxxxx"
          android:clickable="true" &gt;
      &lt;/com.xxx.yyy.FireMapView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>And My another activity xml is,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/reportentry"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;com.xxx.yyy.FireMapView
          android:id="@+id/mapview1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_marginBottom="10dp"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:layout_weight="3"
          android:apiKey="xxxxxx"
          android:clickable="true" &gt;
      &lt;/com.xxx.yyy.FireMapView&gt;
  
      &lt;LinearLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/reportentry1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_weight="1"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:id="@+id/a1"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/add"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="Address" /&gt;
  
              &lt;EditText
                  android:id="@+id/address"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/ft1"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/ft2"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="ft" /&gt;
  
              &lt;Spinner
                  android:id="@+id/ft3"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/c"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/c1"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="C" /&gt;
  
              &lt;EditText
                  android:id="@+id/c2"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                 /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/p1"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/p2"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="p" /&gt;
  
              &lt;EditText
                  android:id="@+id/p3"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/fc"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/fc1"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="fc" /&gt;
  
              &lt;Spinner
                  android:id="@+id/fc2"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/btn_info"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;Button
                  android:id="@+id/cancel"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="Cancel" /&gt;
  
              &lt;Button
                  android:id="@+id/report"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:text="Report" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Please provide me the correct way....</p>
  
  <p>Thanks</p>