Comments (11)
It is okay to use setText because the selected value is only informative.
It's strange you say that the other options are disappearing. How are you using your Adapter?
from betterspinner.
I'm using like this:
String[] statusArray = getActivity().getResources().getStringArray(R.array.statusArray);
statusAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_dropdown_item_1line, statusArray);
statusAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mStatusSpinner.setAdapter(statusAdapter);
from betterspinner.
At some other time you're calling setAdapter
?
from betterspinner.
No, just in the beginning.
from betterspinner.
You could create a small sample project to replicate the problem?
So I can have a check for you.
from betterspinner.
This is strange, because I used the better spinner in another activity with setText, but it give me no problems.
from betterspinner.
Yes. Unfortunately I dont know.
from betterspinner.
Same problem occurs to me
I made the Spinner lost focus, then other options came out.
from betterspinner.
Without replicating the problem is difficult to help.
from betterspinner.
I faced this problem..So i removed android:focusableInTouchMode="false"
from xml and IT DID WORK.....maybe its related to some focus event bug....didnt had time to dig deeper
from betterspinner.
@douglasjunior This issue seems to happen when we are using the spinner inside a fragment, in my case i am using the spinner inside a DialogFragment populated with a list. If you create a simple android button to change the text of the spinner you will reproduce the issue. Remember the spinner has to be inside a fragment for the issue to appear
@my541619352 what do you mean by "made the spinner lost focus"? I tried request focus on other component but the problem doesn't go away
@Jackcar Did you eventually fixed the problem?
from betterspinner.
Related Issues (20)
- How to change floating label color? HOT 2
- How to set the selected item with particular position? HOT 1
- Please add search popup option.
- Annoying Double Tap issue HOT 3
- how to get value and position of selected item ...? HOT 1
- how to align the drop down icon close to the selected text
- Add an option to hide the dropdown arrow icon HOT 1
- How to change the material better spinner background color
- Please add wiki with explanation of usage MaterialEditText
- How to set typeface in label and hint
- My fix for bugs with empty data, focus, setText and setSelected/getSelected feature
- disable MaterialBetterSpinner HOT 1
- Wrap Long Text
- HOW TO set default value HOT 1
- How to change right icon on betterspinner HOT 1
- how to open spinner programmatically?
- How to validate if no value selected HOT 1
- MaterialBetterSpinner selection remove HOT 1
- Poor docs: Can't get selected item from spinner nulls
- how to know which better spinner is selected or clicked HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterspinner.