Android删除弹出菜单滚动选项
在纵向模式下,当按下弹出菜单项时,将显示4个项目的列表。在横向模式下,并非所有项目都可见,并且自动启用滚动。尽管只有4个项目,而且屏幕上肯定有足够的空间。如何删除滚动选项 这是menu.xml:Android删除弹出菜单滚动选项,android,Android,在纵向模式下,当按下弹出菜单项时,将显示4个项目的列表。在横向模式下,并非所有项目都可见,并且自动启用滚动。尽管只有4个项目,而且屏幕上肯定有足够的空间。如何删除滚动选项 这是menu.xml: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schema
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" >
<item
android:id="@+id/menu_userGame_uninstall"
android:title="@string/userGames_gameMenu_uninstall"/>
<item
android:id="@+id/menu_userGame_similarGames"
android:title="@string/userGames_gameMenu_similarGames"/>
<item
android:id="@+id/menu_userGame_share"
android:title="@string/userGames_gameMenu_share"/>
<item
android:id="@+id/menu_userGame_rate"
android:title="@string/userGames_gameMenu_rate"/>
</menu>
创建不同的布局以支持potratit和横向模式 例如: 你可浏览以下网址:
我不想要不同的布局。我想取消滚动选项。
res/layout-land [Landscape Mode]
main.xml
res/layout-port [Portrait Mode ]
main.xml