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 - Encode info in image pixels
How do I save the current state of an Android App?
Android IBinder redelivery makes complex multiple client connections?
Using fragments for TAB layout, how to use them?
Create android module library from existing source
How to insert image into activity
RecyclerView GridLayoutManager with full width header
Yii2 Extension Jeapie for Push Notification
android proper implementation for deep linking
Edittext automatically gets focus when move between pages in a view pager
Android: Custom animation for ViewPager
How to secure an Android application having Guest login (without any credentials) as Token Based authentication can't be applied
Android - create signed APK with Proguard
Changing value of textview using android spinners
Upgrade Kotlin from 1.0.2 - 1.0.3: java.lang.NoSuchMethodError: No virtual method provideInjectedData$app_compileDebugKotlin()
Multiple Activities in Android manifest/app drawer [duplicate]

Categories

HOME
eclipse
scikit-learn
api
rdbms
swt
camera
alarm
newrelic
nsbundle
angularfire2
webix
barcode
computer-science
performancepoint
spin
pattern-matching
minecraft-forge
redis-sentinel
searchview
job-scheduling
intershop
chargify
android-7.0-nougat
video-editing
git-extensions
oledb
apache2.4
pagespeed
flask-sqlalchemy
licensing
flooding
firebase-analytics
quantlib
userdefaults
dst
keras-layer
openwhisk
hunspell
least-squares
tex
amazon-ses
bc
google-data-api
jvmti
ogc
apache-directory
snapchat
httrack
vugen
convex-optimization
truezip
gpg-signature
cpu-cache
reachability
pure-css
qtplugin
centrifuge
refinerycms
grass
opl
ons-api
amiga
sql-server-data-tools
uvc
teaspoon
create.js
matrix-inverse
gnumeric
memset
maven-scm
dsym
drupal-nodes
multitasking
hibernate-entitymanager
isqlquery
mbunit
hidapi
observium
poker
css-reset
cardreader
redis-py
monotouch.dialog
jsr286
procedures
jquery-tools
fsevents
undefined-index
uideviceorientation
eclipse-marketplace
opml
pagemethods
information-management
leader
great-circle

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