android


Android remove Popmenu scroll option


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>
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

Related Links

Querying with two criteria in Firebase on Android
Firebase 2.0 - how to deal with multiple flavors (environments) of an android app?
zooming, dragging an image causing image loading delay
Android Gallery Thumbnail Images
How to turn off physical keyboard through adb command?
How to limit parallel requests with Retrofit 2.0?
Chromwebdriver problen when installing appium
readParcelable returns null
Template Proposals in Android Studio
ActionBarDrawerToggle in activity breaks options menu in fragments
Block any full screen App Android (ROOT)
Best solution for different requests and using Loader?
volley error when importing module
showing a view relative to a button android
How to intercept click on specific url and open own webclient — Android
Drop down menu for each custom ListView item in android

Categories

HOME
google-cloud-platform
spark-streaming
google-spreadsheet
jmx
pascal
r-googlesheets
aws-cli
mips
vsm
google-admin-sdk
special-characters
p2p
text-mining
intercom
internationalization
google-container-registry
babel
parcelable
slidetoggle
asymptotic-complexity
wcag
spotipy
bringtofront
winpe
postback
laravel-eloquent
jett
gojs
gnat-gps
pop3
python-pptx
flatmap
gdata
railstutorial.org
linq-to-objects
signals-slots
mcustomscrollbar
odoo-website
sharp-snmp
congestion-control
knime
wc
apache-spark-dataset
servermanager
httrack
fclose
context-switch
modelsim
headless
universal-analytics
slackware
winusb
burrows-wheeler-transform
dotnetnuke-7
mta
jboss-tools
observablecollection
swizzling
http-status-code-401
angular-ui-typeahead
php-socket
gcloud-ruby
database-relations
findfirst
rasterize
crouton-os
state-restoration
iokit
jdi
google-books
amiga
cwrsync
alloy-ui
psr-4
codeplex
drupal-nodes
openargs
http-patch
kendo-dataviz
gpars
css-reset
wimax
web-notifications
wcf-configuration
correlated-subquery
inkcanvas
jdb
relative
fsevents
listactivity
timthumb
event-receiver
appledoc
collectionviewsource
nhprof
qglwidget
jqueryform

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App