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

设置了sUseShape=true后填充色属(sShapeSolidColor)性仍然无效 #187

Closed
JiangShuLiang opened this issue Mar 22, 2021 · 2 comments

Comments

@JiangShuLiang
Copy link

JiangShuLiang commented Mar 22, 2021

如题,代码如下:
<com.allen.library.SuperTextView
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginTop="5dp"
stv:sCenterBottomTextColor="@color/red"
stv:sCenterBottomTextString="中下文字"
stv:sCenterTopTextString=" "
stv:sCenterViewGravity="left_center"
stv:sLeftBottomTextColor="@color/yellow"
stv:sLeftBottomTextString="左上文字"
stv:sLeftIconHeight="30dp"
stv:sLeftIconRes="@mipmap/ic_app_icon"
stv:sLeftIconWidth="30dp"
stv:sLeftTopTextColor="@color/blue"
stv:sLeftTopTextString="左上文字"
stv:sLeftViewGravity="left_center"
stv:sRightViewType="switchBtn"
stv:sShapeCornersRadius="10dp"
stv:sShapeSolidColor="@color/green_light"
stv:sShapeStrokeColor="@color/green"
stv:sShapeStrokeWidth="1dp"
stv:sThumbResource="@drawable/thumb"
stv:sTrackResource="@drawable/track"
stv:sUseRipple="true"
stv:sUseShape="true" />

@MrDon94
Copy link

MrDon94 commented May 8, 2021

代码里的useSelector默认为true,导致solidColor失效,自己改源码导入吧:)

@lygttpod
Copy link
Owner

已修复 请使用新版V2.4.6

V2.4.6升级日志

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

3 participants