Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Map v2 Animation
    text
    copied!<p>My app is composed of three fragments in an activity left to right. The user can animate to the left or right like a sliding drawer. This works perfectly in all cases except when the MapFragment is visible.</p> <p>The MapFragment is already instantiated in the TabHost in both cases, but is visible in the 2nd image.</p> <p><img src="https://i.stack.imgur.com/KBhJa.png" alt="Working Correctly"></p> <p><img src="https://i.stack.imgur.com/eLlac.png" alt="MapFragment displayed"></p> <p>I set a lot of the dimensions programattically, but this is the basic view hierarchy if it helps:</p> <pre><code>&lt;xxxx.xxxx.WideLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/frag_container" android:layout_width="900dp" android:layout_height="match_parent" android:orientation="horizontal" &gt; &lt;LinearLayout android:id="@+id/left_menu" android:layout_width="0dp" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/login_blackboard" &gt; &lt;fragment android:id="@+id/left_list" android:name="xxxx.xxxx.MenuFragment" android:layout_width="match_parent" android:layout_height="match_parent" android:tag="MENU" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/middle_menu" android:layout_width="0dp" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;LinearLayout android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;fragment android:id="@+id/frag_action" android:name="xxx.xxxx.ActionFragment" android:layout_width="0dp" android:layout_height="match_parent" /&gt; &lt;/xxxx.xxxx.WideLayout&gt; </code></pre> <p>Any suggestions to keep the map in its bounds after the animation?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload