Comments (8)
用的是哪个控件Android什么版本我去试试
from flycoroundview.
RoundTextView, RoundxxLayout都不行,5.1.1
from flycoroundview.
我用了genymotion 5.1.0虚拟机和三星5.0.1都是可以我这没你这5.1.1
from flycoroundview.
解决了:.getDelegate().setBackgroundColor(context.getResources().getColor(R.color.red))才有效果,
.getDelegate().setBackgroundColor(R.color.red);则没有效果
from flycoroundview.
嗯,解决就好R.color.red资源索引值方法需要的是Color int值~
from flycoroundview.
建议两种方式都支持啊,免得别人再踩坑
from flycoroundview.
额没这个打算,你可以试试View自带的setBackgroundColor也是不支持的R.color.red
from flycoroundview.
怪我没说清楚,setBackgroundResource和setBackgroundColor。Thanks, anyway.
from flycoroundview.
Related Issues (18)
- when set RoundTextView android:singleLine="true" in xml ,bug show~ HOT 1
- setRippleEnabled from code HOT 1
- elevation无效
- 能去掉这两个属性吗?
- selector针对rv_xxxcolor无效
- Memory overflow
- 急急急!!!!!!什么时候 添加 渐变功能??? HOT 1
- 有空可以 支持一下 ConstraintLayout HOT 1
- 使用出现问题
- 出现问题,应该是和手机型号有关
- Ripple effect support HOT 4
- presscolor 必须在控件设置点击事件以后才能有效果
- can't setbackground many times~ HOT 1
- 请问下怎么可以设置enable=false时候的颜色值
- 单位不统一
- Request to add "rv_backgroundCheckColor" HOT 1
- 为什么里面没有支持的imageview? HOT 1
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 flycoroundview.