Skip to content
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_pressed的不合理处 #33

Closed
TianGuisen opened this issue Jun 25, 2019 · 3 comments
Closed

background_pressed的不合理处 #33

TianGuisen opened this issue Jun 25, 2019 · 3 comments

Comments

@TianGuisen
Copy link

当只设置了background_normal,没有设置background_pressed,
理应按下和默认的状态是一样的,但是目前是按下的时候会变白或者说看不见了....
导致每次写background_normal我都必须再写一个一样颜色的background_pressed

@RuffianZhong
Copy link
Owner

@TianGuisen 那个控件会出现你说的这个情况,我这边处理的都是在没设置background_pressed这些状态的时候都是默认使用background_normal

@TianGuisen
Copy link
Author

      <com.ruffian.library.widget.RTextView
            android:textColor="@color/white"
            app:background_normal="@array/ff2_fe2"
            app:corner_radius="65pt"
            app:gradient_orientation="LEFT_RIGHT"/>

@RuffianZhong
Copy link
Owner

@TianGuisen
库中逻辑是未设置其他状态背景时使用默认背景,只是其中一个判断写错了,已经修复更新。
升级到最新版本 1.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants