android-spinner Questions

5

It appears that a spinner is sized to the longest item given in its adapter. This is a good behavior for the majority of cases, but it is undesirable in my particular case. Is this possible to tur...
Moxa asked 1/11, 2012 at 2:51

4

Solved

I could not change spinner's textsize or colour with the code below: <Spinner android:id="@+id/spinner1" style="@style/submitspinner" android:layout_weight="2" android:entries="@array/a_co...
Rutabaga asked 22/5, 2013 at 14:6

7

Solved

I'm developing an app for RTL language and want to change the position of arrow to the left of Spinner ! Is there anyway to do this without creating a custom spinner ?
Presley asked 25/2, 2015 at 9:10

6

I have created a spinner that has three items Daily Weekly Monthly I did the following in my java file: navSpinner = new ArrayList<SpinnerNavItem>(); navSpinner.add(new SpinnerNavItem(g...
Gurdwara asked 11/7, 2015 at 9:31

4

Solved

I need to set the drop down arrow closer to its emitting text element in Spinner. How can achieve this? <Spinner android:id="@+id/spinner" android:layout_width="wrap_content" android:layout_h...
Paramagnetic asked 16/12, 2015 at 21:10

4

I need to animate an icon of an arrow when opening and closing a spinner in Android. I can rotate the arrow when opening the spinner: I just put a setOnTouchListener on the Spinner. The problem co...

8

Solved

Is it possible to know whether a Spinner is open or closed? It would even be better if there was some sort of onOpenListener for Spinners. I've tried using an OnItemSelectedListener like this: sp...
Phylys asked 26/8, 2013 at 14:55

4

In my app, I have some spinners (each of which is part of a fragment) in a scrollView. This scrollView is placed below a textView. The problem is that, when I'm running the app on my test device ...
Forgotten asked 22/3, 2016 at 23:34

14

Solved

When I disable my Spinner it looks almost exactly like it did prior to being disabled, i.e. Before After It is disabled and so functionally everything is fine but I'd like it to look disable...
Inconvenient asked 3/10, 2011 at 23:40

5

Solved

I've tried to change the style and the position of the scrollbar which is inside a spinner, but it does not work. MainActivity.java: package com.example.testapp; import android.app.Activity; imp...

2

I have some basic piece of code on a Welcome Activity that simply binds List adapter as usual: final ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(this, android.R.layout.sim...
Hexad asked 23/1, 2017 at 15:48

11

Solved

I'm trying to get a Spinner to load up with no selected value. Once the user selects a value it then takes them to another page. This is proving to be a problem because at present, the page just ...
Waw asked 18/1, 2011 at 16:34

6

Solved

I want to implement an android spinner with key value . en:english jp:japanese And when user select and item I want to save key to database . And also on next load I want spinner to select a ...
Fluorescent asked 17/2, 2016 at 6:51

9

I have a spinner in my Android app, and its onItemSelected() event automatically gets triggered upon entering the activity. How do I avoid this?
Melton asked 20/3, 2011 at 11:35

3

Solved

How do you use the androidx databinding library to fill a Spinner with a list of custom objects (app:entries)? And how to create a proper selection callback for the Spinner (app:onItemSelected)? ...
Carminacarminative asked 17/11, 2018 at 20:10

4

Solved

I have a layout with three spinners. They differ in the option presented in the drop-down. In my onCreateView I have a method to setup the spinners. Inside that method I have something like this: ...
Telemachus asked 2/1, 2015 at 17:20

3

Solved

I am using a spinner whose adapter is dynamically populated. When there are multiple items, the spinner behavior is the standard one. On a click, the dropdown is showed, allowing the user to sele...
Boatsman asked 21/8, 2012 at 20:4

5

Solved

How to set my first value (default value) in spinner as empty. Means, until the user selects value from list, spinner will have no value. I tried below list.add(""); But, it won't work. Below ...
Flub asked 15/9, 2015 at 11:45

3

I have an Edittext with a drawable [v] at the right side of it to make it looks like a spinner. Now, how can i achieve this? I will set the edittext as clickable then when I click it, a dialogfragm...
Tuna asked 3/3, 2017 at 13:34

6

Solved

I using listviews and expandedviews that has dividers and I can set them but on spinner its looks like it is no divider between items. Someone that has a idea of how to fix this?
Pyo asked 31/12, 2010 at 11:17

17

Solved

How can you set the event listener for a Spinner when the selected item changes? Basically what I am trying to do is something similar to this: spinner1.onSelectionChange = handleSelectionChange;...
Kyliekylila asked 26/8, 2009 at 20:53

0

I'm trying to implement an editing cart in my project. For that, I have used a spinner. I posted two methods: one using ViewModel and one without. When I am not using ViewModel, it works fine. The ...
Alage asked 26/10, 2020 at 13:1

6

Solved

I have two spinners (day_spin and time_spin) in one Activity. I want to save the selected day_spin value into a variable. Is it possible to differenciate between the two spinners in the same Listen...
No asked 13/2, 2012 at 15:15

7

Solved

I have a spinner and by default there is extra white-space between text and dropdown icon which I really don't like and wanna remove it. Tried searching over the web but did not get anything which...
Cologne asked 23/8, 2017 at 16:57

3

I want to set the android spinner item values at runtime. Here is what I have so far: final ArrayAdapter<String> calsListAdapter = new ArrayAdapter<String>( this, android.R.layout.si...
Clear asked 25/7, 2012 at 18:20

© 2022 - 2024 — McMap. All rights reserved.