android-spinner Questions
3
Solved
I've decided to create my own custom spinner by extending a TextView and composing a ListPopupWindow. I want to emulate the following functionality of the original Spinner: when the spinner is clic...
Gelatinate asked 22/4, 2014 at 8:55
2
XML code of spinner:
<Spinner
android:id="@+id/mySpinner"
https://stackoverflow.com/questions
style="@style/Widget.AppCompat.DropDownItem.Spinner"
android:layout_width="match_parent"
andr...
Kassandra asked 27/3, 2018 at 8:59
5
Solved
I want to catch an event when spinner drop down is dismissed. We can catch it when the user clicks on any item in the onItemSelected(). But I want to catch even when user touches outside of the dro...
Prophet asked 7/11, 2013 at 10:2
4
Solved
I'm using spinner and want to add spinner - to change behavior depends of states(focused, pressed)
sample project is here https://github.com/vovs/spinner_issue
My code:
activity_main.xml
<Sp...
Zucchetto asked 6/2, 2013 at 20:7
37
Solved
I want to use a Spinner that initially (when the user has not made a selection yet) displays the text "Select One". When the user clicks the spinner, the list of items is displayed and the user sel...
Blackcap asked 15/5, 2009 at 8:9
6
Solved
How do I create spinner which allows to choose multiple items, i.e spinner with check boxes?
Cuyp asked 16/2, 2011 at 11:11
6
Solved
What is the best way to show a loading spinner while the app is waiting for a response from the server?
Can this be done programmatically? So that I don't have to add the load spinner in the xml f...
Lefton asked 11/10, 2012 at 14:23
8
Solved
As I wrote in my question, I want to change the color of the drop down arrow (the default arrow, not a custom arrow or something like that) of a Spinner in XML, but the problem is that I couldn't f...
Culver asked 23/8, 2015 at 11:51
14
How can I create a drop-down list? I've tried a ScrollView but it's not exactly what I need.
Wanhsien asked 14/11, 2012 at 10:48
16
Solved
I have a spinner which I am showing in a dialog view, and the moment the dialog starts onItemSelected is called. I don't really want to process this but only when user makes the selection. So I eit...
Chesna asked 26/2, 2011 at 3:24
8
Solved
Hello I am trying to add left drawable in Spinner but I didn't find any propery for this as you do same in EditText using android:drawableLeft="@drawable/password_drawable". Is there any correct wa...
Transmundane asked 12/5, 2014 at 12:38
5
Solved
Some items in my spinner are long and I would like the spinner to wrap the text over multiple lines depending on how long the text is. I looked over serval solutions for this but they are not worki...
Mcvay asked 24/3, 2018 at 19:16
12
Solved
The solutions I found to change the spinner dropdown icon where all:
1. create a custom drawable
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="ht...
Photography asked 24/5, 2016 at 11:0
10
Solved
view-text-in-the-center-of-the-spinner-when-select-from-the-drop-down-list
I want to align the view text of spinner to center. I google it but didn't find anything, does anybody knows about this? ...
Loy asked 22/9, 2011 at 7:21
2
Solved
I am trying to to create a Spinner inside a Fragment but I am getting error in the ArrayAdapter constructor call. I don't know why, but it has a red underline. Other than that, there is no error. W...
Gish asked 18/1, 2018 at 16:11
11
Solved
Please suggest any approach which i use to create it .
Query : I am creating 2-Spinner view , where i have to add Country/Cities list , So like if i am selecting india then i am getting 50 items i...
Revolutionary asked 15/12, 2013 at 17:37
11
I've been trying to update my spinner in android dynamically but nothing I try has been working.
This is the following code I'm using to update the spinner.
typeList = dbAdapter.getList(); //arr...
Classless asked 19/7, 2010 at 17:20
9
Solved
How can I change the colour of small triangle at the bottom right corner of spinner like shown in the image?
It is showing default grey colour right now. like this
Lobotomy asked 18/9, 2014 at 11:19
14
I am trying to add a Hint in the spinner widget as there is no option of Hint as in EditText, I want to show Gender as a Hint and when clicked it must show only Male and Female not the hint.
How ...
Rigmarole asked 4/5, 2016 at 6:20
12
Solved
I tried to set spinner with drop down arrow but i couldn't fix it can anyone help me with this? I have attached the source code.
my class file:
import android.os.Bundle;
import android.view.Vie...
Juggle asked 6/12, 2013 at 11:31
5
Solved
I have a main activity that has simple buttons and listeners associated to them. Each button opens a new activity (intent). However while opening activity, it takes some time to load which causes a...
Conversable asked 29/1, 2016 at 7:32
21
Solved
I created an Android application with a Spinner and a TextView. I want to display the selected item from the Spinner's drop down list in the TextView. I implemented the Spinner in the onCreate meth...
Tiller asked 15/11, 2012 at 12:55
6
I have set
<item name="android:spinnerMode">dialog</item>
and so when I tap the spinner, I get a popup. But that popup is grey with white text and I can't seem to change any of the c...
Rimester asked 19/2, 2017 at 8:55
2
Is there any standard implementation in Jetpack Compose for visual component like Spinner/Wheel Picker or Dropdown Button?
Iambic asked 4/6, 2021 at 18:43
10
Solved
Spinner's onItemSelected callback called twice after a rotation if non-zero position is selected
When I create my activity, I setup a Spinner, assigning it a listener and an initial value. I know that the onItemSelected callback is called automatically during application initialization. What I...
Circumstantial asked 28/1, 2013 at 11:10
1 Next >
© 2022 - 2024 — McMap. All rights reserved.