Comments (5)
use the following code in your layout xml
app:textTint="@color/black"
from nice-spinner.
By modify a little source code, I have solve this problem. I don't have time to find more.
public View getView(int position, View convertView, ViewGroup parent) {
TextView textView;
if (convertView == null) {
convertView = View.inflate(mContext, R.layout.spinner_list_item, null);
textView = (TextView) convertView.findViewById(R.id.tv_tinted_spinner);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
textView.setBackground(ContextCompat.getDrawable(mContext, mBackgroundSelector));
}
convertView.setTag(new ViewHolder(textView));
} else {
textView = ((ViewHolder) convertView.getTag()).textView;
}
textView.setText(getItem(position).toString());
// textView.setTextColor(mTextColor);
textView.setTextColor(Color.BLACK); //here
return convertView;
}
when use:
niceSpinnerType.attachDataSource(datasetType);
niceSpinnerType.setTextColor(Color.BLACK);
niceSpinnerType.setLinkTextColor(Color.BLACK);
from nice-spinner.
the same problem
from nice-spinner.
Thank you SusionSuc
from nice-spinner.
This should've been solved with 97c6100. 👍
Closing this for now, feel free to reopen it if the issue persists.
from nice-spinner.
Related Issues (20)
- android 5.1 the arrow not show HOT 2
- arrow not rotating HOT 1
- 无法触发监听
- android:entries didn't work
- 列表长度为0时,会出现adapter.getCount()为null(when the list's size equal 0, the project throw a exception that means adapter.getCount() is null) HOT 3
- 设置layout_height高度时,里面文字只显示一半 HOT 1
- setSelectedIndex crash HOT 3
- Unable to set background
- Hey,guys.There's a very significant problem in this project. HOT 1
- can you add search function && show hint or nothing on start && select can be a panel not just a list! HOT 1
- Spinner drop down arrow not localized
- list列表数据count为1时,pop不弹出(版本1.4.5) HOT 1
- Manifest merger failed with multiple errors, see logs HOT 1
- 在双屏异Presentation中无法使用,无法弹出下拉框
- Nice spinner reference cant be resolved in android studio HOT 5
- dropdown list overlap with anchor view when changing the anchor view background to a transparent image HOT 2
- /storage/emulated/0/qpython/scripts3/buildozer/scripts/client.py
- When I set a custom arrow with arrowDrawable, the arrow does not rotate during operation. What is the problem?
- How to set the drop down height?setDropDownListPaddingBottom not working
- "Why did version 1.4.5 solve the issue of having only one piece of data, but your project homepage still recommends using version 1.4.4?"
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 nice-spinner.