android-spinner Questions

4

Solved

When you implement SpinnerAdapter you get getDropDownView, how does it differ from getView which you have when you need to extend BaseAdapter.

3

Solved

I have a spinner that behaves like a dropdown in my android application. I am developing the app in android studio. The spinner get data from the api. At run time it gets usernames from API and sho...
Dunbarton asked 24/2, 2017 at 12:24

3

Solved

I'm loading phone contacts in a custom ListView. Each row is a checkable LinearLayout containing a CheckedTextView and another TextView. I'm feeding the list view with a custom ArrayAdapter. My pr...
Antoniaantonie asked 28/9, 2012 at 14:1

2

Solved

First of all, I know that this was asked several time, but on newer android versions it looks like that the suggested solutions doesn't work. I need that my spinner call OnItemSelected even when th...
Boatel asked 1/11, 2013 at 19:33

2

Solved

Background I had to create a spinner-like view, which has this behavior: textView that has the selected item text in it, with an arrow icon on the right that indicates whether it's in "open" sta...
Verney asked 29/1, 2017 at 10:31

2

Solved

I have two Spinners. One of them is populated on run-time. groupSpinner.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, groupNames)); The other one is pre-popula...
Gravitt asked 15/1, 2017 at 20:36

1

When I change the background color of my spinner, the drop-down arrow disappears. I have seen some answers to similar questions here, but they don't really address how to make the arrow "reappear" ...

2

Solved

I am using appcompat v21 in a project, but I do not like the new spinner it comes with by default. This new spinner comes only with a small downward-facing arrow that indicates it presence. I would...

4

I have ,in a fragment, a method call who open an AlertDialog when an user tap on an button, in that dialog I would like to show a Spinner with countries ( Spain, Italy, French....) My code for the...
Tenderloin asked 29/10, 2015 at 14:16

2

Solved

I have the following as AppCompatSpinner's entries: <string-array name="startTimeList"> <item>Now</item> <item>Pick a time..</item> </string-array> Upon sel...
Vin asked 22/11, 2016 at 17:45

2

Solved

I have a requirement to show an AlertDialog when selecting the 2nd item in Spinner. I know that using onItemSelected we can listen to the spinner selection & show a popup. The issue is when I s...
Gleeson asked 31/7, 2015 at 9:36

5

Solved

I've been adding a ProgressBar to the fragments in my app. I've set it up to the two main fragments (used as tabs) as follows: ProgressBar in activity_main.xml: <?xml version="1.0" encoding="u...
Concordia asked 21/6, 2014 at 15:4

1

Solved

Is this possible to load a list of all countries in a spinner, then on selecting the particular country, all of its cities appears in another spinner and after selecting the city, we get the ...
Anschluss asked 8/11, 2016 at 15:48

1

Solved

I am developing an app in Kotlin (if you don't know about kotlin I am sure you can still help with your Android/Java experience) Details: I have a Spinner in there my app.Though it is not respond...
Livingston asked 10/11, 2016 at 22:10

5

I'm trying to create a spinner with default empty selected item, but it displays the first item from the choices of spinner. If I add null value to my string, which is the source of choices in spin...
Korry asked 14/7, 2012 at 12:49

3

Solved

I'm currently working on a Account Management Activity for my Android application and I'm having trouble figuring out why the setSelection() method from a spinner does not trigger the OnItemSelecte...
Madelina asked 30/1, 2012 at 14:43

2

Solved

I need to create a progressDialog only with the spinner and without the box (or at least with a smaller box and the image in the middle). I don't want to add a spinner to my .xml (layout file) to ...
Razid asked 13/2, 2014 at 10:34

1

Solved

I'm having an alignment issue with the TextInputLayout and the Spinner, I want the Spinner underline aligned with the EditText underline inside of TextInputLayout. This is what I'm doing: <Line...

2

Solved

I am trying to expand a Spinner when user click on another Button. as example : I have a Spinner with values and a 'OK' button when user click on 'ok' buttton without selecting any value from spinn...
Vannie asked 21/1, 2014 at 4:47

3

Solved

I am using an app which displays a drop down Spinner with an EditText as a child of TextInputLayout next to it. When an underlined error is shown under the TextInputLayout, then the EditText will ...

3

Solved

I would like the spinner dropdown to open right below the spinner itself. E.g.: How can i set the position of spinner dropdown?
Earthward asked 6/5, 2011 at 6:30

2

Solved

I'm populating my spinner with user object in order to work later with the user ID but the display of the user lists shows the address of the object I guess. So my question is how to display onl...

4

Solved

I'm creating a new spinner dynamically, how can I change my list background color? the current background color is some dark gray: When I'm changing the spinner's background attribute to white, ...
Monachism asked 24/4, 2013 at 17:38

8

I Have two android spinner dropdown in two differnt activity.But both spinner have same data from same sourec.I want to change in position of second Activity acording to position of first activity....

3

Solved

i have added my data in array.xml file and link to <string-array name="state"> <item>ANDAMAN NICOBAR ISLANDS</item> <item>ANDHRA PRADESH</item> <item&gt...
Derouen asked 3/8, 2016 at 8:35

© 2022 - 2024 — McMap. All rights reserved.