社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
bg_round_rectangle_white.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充 -->
<solid android:color="#FFFFFF" />
<!-- 圆角 -->
<corners
android:radius="2dp"/>
<!-- 描边 -->
<stroke
android:width="1dp"
android:color="#D5D5D5"/>
</shape>
bg_round_rectangle_white_dash.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充 -->
<solid android:color="#FFFFFF" />
<!-- 圆角 -->
<corners
android:radius="2dp"/>
<!-- 虚线描边 -->
<stroke
android:width="1dp"
android:color="#DD4041"
android:dashWidth="1dp"
android:dashGap="2dp"/>
</shape>
bg_round_rectangle_red.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充 -->
<solid android:color="#F15C5D" />
<!-- 圆角 -->
<corners
android:radius="2dp"/>
<!-- 描边 -->
<stroke
android:width="1dp"
android:color="#D42D2E"/>
</shape>
bg_round_rectangle_green.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充 -->
<solid android:color="#88C14E" />
<!-- 圆角 -->
<corners
android:radius="2dp"/>
<!-- 描边 -->
<stroke
android:width="1dp"
android:color="#6FA13C"/>
</shape>
triangle_white_arrow_up.xml
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="45"
android:toDegrees="45"
android:pivotX="-40%"
android:pivotY="80%">
<shape android:shape="rectangle">
<solid android:color="#000000"/>
</shape>
</rotate>
triangle_white_arrow_down.xml
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="45"
android:toDegrees="45"
android:pivotX="135%"
android:pivotY="15%">
<shape android:shape="rectangle">
<solid android:color="#000000"/>
</shape>
</rotate>
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!