Android 在xml里通过shape画实心圆

2022-07-19  本文已影响0人  有一点小怪坏

直接上代码

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">
    <solid android:color="#ff0000" />
    <size
        android:width="10dp"
        android:height="10dp" />
</shape>

效果如下图


2022719.png
上一篇下一篇

猜你喜欢

热点阅读