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

How to add spinner in action bar menu items
custom ListView - get id of item when i click on a button located inside the list
Android Unit testing using gradle
How to know if an android device is turned off from the server?
ensure that android layout content stays within screen bounds
Android editText.setError is not visible fully if i use NoTitleBar theme
Is it absolutely correct that Picasso understands NOT to load if the view has been recycled?
develope websocket client/server on android platform by use of netty
BroadcastReceiver keep getting data when unregisterd
Contact Android App via USB
Save image from ImageView to device gallery
Dynamically Created Radio Button or CheckBox does not use Color Accent
Debug instrumentation test
How to Implement Swipe In Android Game Without View
android-display multiple images and to next line if no enough room
How to draw a rect in the middle of screen-Android development

Categories

HOME
phpword
mips
data-visualization
google-cloud-datalab
angularfire2
trac
extjs4.2
watson-conversation
searchview
google-data-studio
smartclient
mapstruct
apache2.4
springfox
href
gulp-watch
zxing
dynamically-generated
gmock
strongname
soot
rpgle
cppreference
alm
volatile
kudu
left-join
hibernate-validator
jett
dsx-desktop
imx6
roblox
apache-spark-dataset
puredata
pom.xml
textsum
opennms
term
wcftestclient
user-defined-fields
fclose
geotiff
insight
remedy
custom-font
video-conferencing
tinkerpop
boxing
edit
d3-force-directed
universal-analytics
filenet
pacemaker
google-cloud-console
async.js
vulcanize
clipboard.js
stream-processing
tracker-enabled-dbcontext
gcloud-ruby
redis-cluster
invoke-sqlcmd
directdraw
opserver
branch-and-bound
diff3
shopizer
bcache
cosine-similarity
viewer
contrast
winginx
koala
android-usb
ora-06550
hibernate-entitymanager
gtm-oauth2
cocoalibspotify-2.0
joomla-template
pagedown
wimax
thttpd
convention
entity-attribute-value
tmx
appledoc
delimited-text
updatesourcetrigger
globals
openfaces
pagemethods
asynchronous-wcf-call

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