1

In portrait mode when the PopupMenu item is pressed a list of 4 items appear. In landscape mode not all the items are visible and scrolling is automatically enabled. Even though there are only 4 items, and there is definitely enough room on the screen. How do i remove the scroll option?

This is the menu.xml:

<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>
JY2k
  • 2,879
  • 1
  • 31
  • 60

1 Answers1

0

Create different layouts to support both potratit and landscape mode.

eg :

res/layout-land [Landscape Mode]
main.xml 
res/layout-port [Portrait Mode ]
main.xml

You can refer further at :

How do I specify different layouts for portrait and landscape orientations?

Different design for landscape and portrait orientation android

http://developer.android.com/guide/practices/screens_support.html

http://developer.android.com/training/basics/supporting-devices/screens.html

Community
  • 1
  • 1
Rohit
  • 647
  • 14
  • 30