Comments (1)
I haven't worked on this project in awhile but trying to cleanup the issues here.
You can provide your own adapter to the spinner. Example:
MaterialSpinner spinner = (MaterialSpinner) findViewById(R.id.spinner);
final List<String> items = new ArrayList<>();
items.add("Foo");
items.add("Bar");
final MaterialSpinnerAdapter<String> adapter = new MaterialSpinnerAdapter<>(this, items);
adapter.setTextColor(Color.BLACK); // sets the dropdown item's text color. This won't be necessary in the next release.
spinner.setAdapter(adapter);
// add items to the spinner after 3 seconds
new Handler().postDelayed(new Runnable() {
@Override public void run() {
items.add("Baz");
items.add("Qux");
adapter.notifyDataSetChanged();
}
}, 3000);
Does this resolve your issue?
from materialspinner.
Related Issues (20)
- Selected Item shows with .toString() HOT 2
- Spinner only expands below the view. HOT 1
- Spinner Trigger Item
- Add an option to make changes in drop down text alignment
- Update Request ?
- arrow not show HOT 1
- nothing selected
- How to set maximum number of items ?
- Viewpager2 fragment freezes custom spinner widget when returned after swiping HOT 2
- Items not showing on spinner click , after changing spinner visibility from Gone to visible HOT 1
- When I used it in my Presentation, there were no drop-down boxes
- 麻烦修复下这个异常java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 onRestoreInstanceState
- Cannot add two spinner under same layout HOT 1
- DropDown menu doesn't work when change fragment HOT 1
- Inflate Exception
- Do not showing the Spinner Selected item. HOT 1
- MaterialSpinner Hint HOT 1
- Top and bottom offset in the popup list
- Add Background Image
- fix non-selected state and set hint text
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 materialspinner.