私は MapFragment クラスを持っています。これは、呼び出すと全画面表示になります。
この質問から、水平レイアウトを強制するには Android マニフェストの変更が必要になることがわかりました。ただし、MapFragment クラスの場合、どうすればこれを達成できますか?
これが役立つ場合、これは私のマップ表示用の xml です。
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<fragment
android:id="@+id/fragment_map"
android:name=".com.fragments.MapFragment"
class="com.fragments.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="tag_fragment_map" />
</FrameLayout>