kongzue/StackLabel

希望加入标签圆角配置

nxnyk opened this issue · 1 comments

nxnyk commented
希望加入标签圆角配置

1.请创建Deawable资源文件:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <!-- 填充颜色 -->
    <solid android:color="#0f000000"></solid>
    <!-- 矩形的圆角半径 -->
    <corners android:radius="99dp" />
</shape>

2.请在布局XML中的StackLabel设置属性:
默认情况:

app:labelBackground="@drawable/你的资源文件名"

选中情况:

app:selectBackground"@drawable/你的资源文件名"

完成。