マルチペインのメイン アクティビティがあります。そのレイアウトは次のとおりです。
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/multipane_half_padding"
android:layout_weight="2"
android:background="@drawable/grey_frame"
android:orientation="vertical" >
<fragment
android:id="@+id/fragment_navigation"
android:name="com.armsoft.mtrade.fragments.NavigationFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<FrameLayout
android:id="@+id/fragment_container_detail"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/multipane_half_padding"
android:layout_weight="5"
android:background="@drawable/grey_frame" />
そして、別のフラグメントを fragment_container_detail に追加するよりも
<FrameLayout
android:id="@+id/planned_routes_map_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<com.armsoft.mtrade.widget.BidirectionalDatePicker
android:id="@+id/bidirectional_date_picker"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@+id/planned_routes_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
レイアウト。
メニュー項目を押すと、MapFragment をplanned_routes_map_container に追加すると、アプリケーションが点滅し始めます。この問題を解決するにはどうすればよいですか?