Questions tagged [spinner]
Spinner is a widget that allows the user to select an item from a group, like a dropdown list.
5,125
questions
1
vote
1
answer
53
views
JavaFX: Is there a way to disable only one button of the Spinner?
I want to disable just one arrow-button of the JavaFX Spinner component, so that they cannot assume illegal values:
I have 2 Spinner components "Min and "Max" with [2-6] as range of ...
0
votes
0
answers
23
views
Stop rotation of the spinner
I have a spinner with 3 circles each apart with each other lets say 150px in a triagular path(1 at top remaining 2 at bottom)
circles apart
now i want to rotate these cicles and bring them closer and ...
0
votes
0
answers
14
views
multiple spinner in which second spinner values should be related to the selected value in first spinner
using 2 spinner first one contains the main category and second one contains the items related to the selected category.
but the second spinner values are not displayed.
package com.learning....
0
votes
1
answer
38
views
Kotlin Object Values from API Response as Spinner Options
I am unfortunately still quite new to Kotlin and Android.
I get a list of objects via API and want to display each list item as an option in the spinner to make a new API request based on it.
My API ...
0
votes
0
answers
9
views
Why isnt another rss feed being displayed when the corresponding option is selected in a spinner (Android/Java)
Hey all hope you're well. Basically I am making this android application that will display the rss feed from a weather url on the click of a button. It's messy right now and I will parse it to make it ...
0
votes
0
answers
10
views
Can i select item from spinner usimg accessbility service
Like this
I want to select an item from this spinner but i can't detect any item from it.
and i used AccessibilityNodeInfo.ACTION_SET_TEXT but it doesn't work
1
vote
0
answers
57
views
Why Kotlin Spinner onItemSelected doesn't work when on a Fragment which loads another Fragment?
I have Fragment and Fragment loads another fragment in it's FrameLayout.And I also have a Spinner in that main Fragment.
PS:my mainActivity initiliaze ListFragment()
MainActivity.kt
class MainActivity ...
0
votes
2
answers
48
views
how to add value to each item of string array in string.xml in spinner
i have a problem here in using spinner, i want to add value to each array item in my string.xml
this is my code:
<string-array name="hubungan">
<item>Choice</...
0
votes
1
answer
37
views
How to get Firebase Data using Spinner Android Studio Java
I Need to get Firebase Realtime Database Data Using Spinner.
Like Spinner - Product Name
After selecting Product Name need to fetch data automatically Rate and Stock Quantity
public class ...
0
votes
0
answers
13
views
Firebase Realtime Database after Select PRODUCT Spinner need to show RATE and STOCK
I am new for Coding, So Kindly Please Help me.
1- I need to retrieve STOCK data from Firebase Realtime Database and Show data in Recycler View. Using Spinner-(Product Name).After Selecting Product ...
0
votes
1
answer
21
views
The onItemChangeListener crashes
So I am currently working on a spinner that changes entries in a list. When loading into the Fragment and loading the List into the spinner adapter and setting up the onItemChangedListener everything ...
0
votes
0
answers
18
views
Why code is not showing the List in the spinner that call with API?
There is an Array of String that passes from the API. What is the problem with the code?
I am trying to pass that value into a spinner
Call<List<ResponseSubject>>
subjectOption=...
0
votes
1
answer
19
views
Spinner not charge list
I'm getting a list of company names but I can only get Spinner to show me one item from the list.
What can I do so that the spinner loads the empresa list, it only shows an item
private fun ...
0
votes
1
answer
31
views
Can't get the position of item of dynamically created spinner
Basically i have a method createList() which creates a Spinner and then i add those spinners to an arrayList myList. After adding them i use setOnItemSelectedListener on each Spinner in the array List ...
0
votes
0
answers
53
views
How to get multiple data from List using Spinner?
I want more required data from my Spinner but unable to get. This is my list ["id":"1","title":"test 1","tableid":"my_value"] and my Spinner ...
0
votes
1
answer
27
views
Kotlin: Spinner won't show
I'm migrating my app to Kotlin and a spinner which was previously working fine (while in Java) stopped working in Kotlin.
This is my CustomShareSpinnerAdapter class:
class CustomShareSpinnerAdapter(
...
0
votes
0
answers
21
views
TextView SetColor not working when fragment is loaded for the second time
I'm trying to change the color for my Custom Spinner selected item depending on which item is selected.
if I select the first element i want to set a grey color for the TextView because I'm using the ...
0
votes
1
answer
26
views
Android Spinner widget doesn't show text
I want to implement Spinner widget in my app. Text doesn't show in text box of Spinner. And when I selected one item, text doesn't show too.
I ran this project in my android studio. When a fragment ...
1
vote
1
answer
43
views
Kotlin store list in RecyclerView by SharedPrefernce
I m trying to store list which i get from spinner from modal class store in RecyclerView shared preference but i m only getting last item selected instead of multiple selection from spinner
...
1
vote
1
answer
69
views
Spinner not showing options in kotlin fragment
I'm trying to add options to spinner while using databinding in fragment but it's not working, I can't understand why
class AddTransaction: Fragment() {
private var _binding: ...
0
votes
1
answer
34
views
how to get the value of the selected spinner item out of the onItemSelected method
I am trying to obtain the selected value from a spinner to store it and use it later. I have tried in two different ways:
return null value
print only the first value of the list, when I select ...
0
votes
0
answers
24
views
How to set item in spinner by setOnKeyListener
I am using spinner to select numeric value. I need to implement the selection of an element from the spinner by pressing a physical key from 1 to 9. Here is my code:
spn_brigNo.setOnKeyListener(new ...
1
vote
1
answer
37
views
RecyclerView Spinner showing data for all the rows instead of only one row at a time
I have two spinners in my RecyclerView. My first spinner is filled inside of the xml ->
<Spinner
android:id="@+id/itemspnReason"
android:layout_width="600dp"
...
0
votes
0
answers
39
views
Golang spinner does not work on docker container
I have a cli that uses a spinner when it's downloading files from remote git repos or extracting from compressed files, it works fine on local execution, but when I run with docker, the spinner does ...
0
votes
1
answer
47
views
Spinner is not showing the selected value when I fetch data from MySql database
I have created a project in which I am using spinner.
In spinner I am setting data fetched from MySql database. The data is being fetched properly as I can get the whole in the dropdown.
The problem ...
0
votes
1
answer
45
views
Spinner is not working in Fragment on Kotlin
The spinner just doesn't work, I tried different versions of the code, but it didn't work in any of them
Can anyone help solve this problem?
TransferFragment.kt
package com.example.hotel2.transfer
...
0
votes
0
answers
44
views
[Resolved]How to retrieve data from firestore based on selection from spinner then calculate total cost to be displayed in textView
Anyone can help please with below my code ,Basically I want to fetch all data from firestore based on UserID and date range for specific month (ex: April) and get total cost for each row which will ...
0
votes
1
answer
24
views
How to print contents of a spinner?
Say that I have a spinner that is populated by
var list = listOf("One", "Two", "Three", "Four", "Five")
How would I access this list if I wanted to ...
-1
votes
1
answer
83
views
How to show a spinner while loading an image in homepage?
I am trying to add a spinner in my home page. I have already declared another component:
<Loading></Loading>
where I included the spinner.
Now, how do I call this above-mentioned ...
0
votes
0
answers
23
views
loading animation function button, but form won't submit
i made a loading animation function with spinner
the animation is work perferctly except when i used function class for submit button, my form wont submit
<script src="https://cdnjs.cloudflare....
0
votes
0
answers
118
views
'p-progressSpinner' is not a known element
the version pf primeng that i use is the latest one : 13.4.0
In the app module, i've import the Spinner module :
import { ProgressSpinnerModule } from 'primeng/progressspinner';
also :
imports: [
...
0
votes
1
answer
27
views
How to set the spinner position to selected item from choice selected in different fragment
Add color spinner
the update fragment
this is my first time asking a question and I am a new coder and been trying out android with kotlin and java. I have an app that allows a user to add an item of ...
0
votes
1
answer
69
views
How to add spinner while loading data in react.js?
I want to add spinner while loading data from database. For fetching data I am using react-hook. Here is my code ,how can I add spinner here?
import React from "react";
import { useNavigate }...
0
votes
2
answers
45
views
Change Spinner Text content programmatically
I have a spinner, and I want to find a way to change the dropdown for my spinner. I want to change my text content through code, but I'm not sure how to do that.
This is the structure of my Spinner:
...
0
votes
0
answers
34
views
Notify data change on spinner select
I can't seem to get my driver to update through my app. I have tried but with no luck. I have a possible solution but don't know what the adapter is that needs to be used. This data all happens in my ...
0
votes
2
answers
88
views
How to use a bootstrap load spinner while fetching data from an external api?
While fetching information from a url takes a long time, how can I utilize the bootstrap load spinner to hide the delay and make the website looks more interactive?
0
votes
1
answer
68
views
how to add Spinner while render a component on react?
suppose ,i will use React bootstrap spinner component. how to show this component while rendering another component like app or anything else.
0
votes
0
answers
25
views
spinner is not showing when data is loading in my home page. but showing in the register and login page.?
I have used spinner as a hook in react js. the spinner is working well in my login and register form. but when i implement this into my home page and when the data loading in my UI. the spinner does ...
0
votes
2
answers
600
views
How to add loading spinner in react js while my components are loading?
I've created a web app with react js. I did every thing well and site is running pretty fine. Though it run well, i need to modify some things. Like when i visit my nav links, it takes few time to ...
0
votes
2
answers
568
views
How to display a spinner when data is loading from server by fetch api in REACT JS?
I am developing a React app where I have to load data from the server on the home page. It takes a small amount of time when loading data from the server. I want to display a spinner when the fetch ...
0
votes
2
answers
543
views
How can I increase the size of react bootstrap spinner?
I'm using react for a project where I'm using a React-Bootstrap Snipper. but Its very tiny and now I want to change its size now. How can I change it?
<div
style={{ width: "200px", ...
0
votes
0
answers
41
views
Why doesn't flexing work for this spinner?
The output-
[Out put of the code][1]
I tried margin auto, justifying, alignment, and more but nothing worked. I am new to programming so I'm not able to understand where the mistake is. Can anyone ...
0
votes
1
answer
196
views
How to fix loading spinner when using useEffect Hooks with dependency list?
I am facing one problem when trying to add a spinner.
My problem is when I add "product" dependency in useEffect hooks then my loading spinner always spinning and data not showing.
Here is ...
0
votes
1
answer
199
views
How to add loading Spinner when first time loaded the website
I'm using React. New in React and nodejs.
My application takes a few times before it loads the component and that time is spent in loading resources and validating the user. In this time only ...
1
vote
1
answer
31
views
Android "visibility" doesn't change if next instruction take long time
I have following situation in my fragment.
@SuppressLint("ClickableViewAccessibility")
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState:...
1
vote
1
answer
52
views
Spinner wont show selected and wont respond to item selection
I'm trying to make a very very simple spinner at least, as follows:
XML:
<Spinner
android:id="@+id/spinner_categories"
android:layout_width="0sp"
android:...
0
votes
0
answers
22
views
Android: Spinner does not save selection after configuration changes
I have Spinner with ArrayAdapter. ArrayAdapter code show like:
class HouseholdsArrayAdapter(
context: Context,
resource: Int,
) : ArrayAdapter<Household>(context, resource, arrayListOf()) {
fun ...
0
votes
0
answers
36
views
When click on Android spinner the item cannot be chosen
Could you please help me? The spinner I have created a spinner. When I click on it I can see a list of items but when I click on any of them, the drop-down many closes, and no element gets selected.
I ...
1
vote
1
answer
73
views
The spinner is empty when no new object is being generated for an ArrayAdapter
To assign data of an ArrayList<String> alKategorien to a spinner auswahl_kategorie, I am using this snippet:
ad = new ArrayAdapter(
this,
android.R.layout.simple_spinner_item,
...
0
votes
1
answer
52
views
Why the spinner function cannot select item?
I have faced a problem which my spinner cannot show the item selected in the page. But for the selection of "All", it can show normally all item but when I click one of the selection in ...