-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background_unable无效 #25
Comments
原生的ViewGroup好像也有这个bug |
改成RTextView就没有问题! |
@LLQQHH |
动态设置mView.setEnabled(false) view不会显示backgroundColorUnable的颜色,而是还是显示backgroundColorNormal的颜色。我看RTextViewHelpder下面的逻辑没有设置backgroundColorUnable的颜色。RBaseHelper#setup()也只是在初始化的时候设置一下。你看一下是否逻辑有问题?
|
@scsfwgy |
我也可以正常使用 |
我用的是RTextview,目的是:当正常时显示 |
我是xml里面事先把不可点击的状态背景先设置好了,没有在代码里面设置 |
在xml里面设置android:enabled="false",然后设置background_unable 无效,但是代码中设置
![image](https://user-images.githubusercontent.com/19651932/51659220-e8306100-1fe4-11e9-8d8a-800b809d573f.png)
RLinearLayout rLinearLayoutF = (RLinearLayout) findViewById(R.id.rLinearLayoutF);
rLinearLayoutF.setEnabled(false);有效
The text was updated successfully, but these errors were encountered: