<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
<layer-list>
<!--上面覆盖一层距离底层,填充白色。两层叠加一起就形成了一条下划线效果,原理自行脑补-->
<item >
<shape>
<solid android:color="@color/white" />
</shape>
</item>
<!--底层使用下划线的颜色填充 可以自行 修改 数据-->
<item
android:top="40dp"
android:gravity="center_horizontal"
android:width="60dp" android:height="3dp">
<shape android:shape="rectangle">
<solid android:color="#ff14cba1" />
</shape>
</item>
</layer-list>
</item>
</selector>
短视频APP怎么开发,选中下划线颜色-小师傅资源网--http://bbs.small-master.com/2438.html