android


Spinner values outsized, not all visible, and no scroll bar


When I click on my spinners, they show the values I have assigned to them, but they are not only outsized (I'd prefer them to just "hang" off of the spinners as combo box items do in desktop apps), but also not all of the values display - they are presumably "there" but are below and out of sight. I'm putting my xml and java below:
XML:
<Spinner
android:id="#+id/spinnerTimeValsNN"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
From Strings.xml:
1
2
3
4
5
6
7
8
9
10
15
20
30
40
45
..okay, the above stripped out all the xml and just left the vals...
Java:
spinnerTimeValsNN = (Spinner) findViewById(R.id.spinnerTimeValsNN);
ArrayAdapter<CharSequence> adapterTimeNN = ArrayAdapter.createFromResource(
this, R.array.timevalsnn_array, android.R.layout.simple_spinner_item);
adapterTimeNN.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinnerTimeValsNN.setAdapter(adapterTimeNN);
Try making your spinner a Variable
Example:
Spinner spinner = (Spinner) findViewById(R.id.spinner1);

Related Links

android: cache gson data in sqlite database
2 viewpager instances don't work
The best way to enlarge images Android
Getting LibGDX to work in Eclipse
Android button background image size
Cannot receive broadcast when sending a bitmap extra
android unable to start Component Info
Android Flat ActionBar (without shadow)
how can I write the new value in shared preference [duplicate]
Scrolling on webview not working
How to create alert dialog (below of listview selected item) by listview selected item [closed]
What a local android.app.Service needed for?
Marker is not adding properly while add through for loop
HTML A Name attribute on android browser
Android Studio “project is not yet initialized”
After app is destroyed by the system it doesn't restart and Mvx does not start

Categories

HOME
windows
go
azure-stream-analytics
assembly
time-complexity
static
camera
oracle-apex-5
requirements
vscode-extensions
bitbucket-api
edge
google-apps
parameters
big-o
limit
extjs4.2
qpython
openpyxl
github-enterprise
mod-security
windows-ce
mxgraph
do-while
capistrano3
soci
gmm
google-maps-autocomplete
articulate-storyline
guzzle
babel
dpdk
aggregation
flask-sqlalchemy
monit
data.stackexchange.com
opentk
appirater
fractions
firebase-analytics
openmdao
user-defined-functions
failover
testcomplete
code-snippets
keras-layer
activexobject
xajax
xcode7.3
flatmap
apache-stanbol
escpos
sharp-snmp
double-click
robomongo
dbcontext
vugen
manova
azure-cli
semantic-logging
jtree
baidu
greatest-n-per-group
neon
scaffolding
gogs
udpclient
jtwig
android-wake-lock
data-protection
pushbots
exim4
jaunt-api
concept-insights
dllimport
rubaxa-sortable
android-launcher
opserver
dock
cgi-bin
.bash-profile
apache-commons-daemon
fits
mmwormhole
bcache
theos
spy++
grails-plugin-rabbitmq
vsx
multiautocompletetextview
http-patch
jammer
scrypt
mbunit
printdialog
beaker-testing
traceability
insert-id
stacky
mysql-error-2013
paginator
usertype
cross-database
webdev.webserver
w3c-geolocation
inline-formset
cdonts
mtu
fail-fast-fail-early
wysiwym
int64
idatareader

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