1
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:top="4dp"
        android:right="4dp"
        android:bottom="4dp"
        android:left="4dp">
        <shape
            android:shape="oval">
            <solid android:color="#ff0000" />
        </shape>
    </item>
    <item>
        <shape
            android:shape="oval">
            <stroke android:width="2dp"
                android:color="#ff0000"/>
        </shape>
    </item>
</layer-list>

ここから取得:

https://stackoverflow.com/a/36003935/6007737

どのように私にリングの形を与えていますか?

レイヤーリストの仕組みとアイテムタグの上、右、下、左の属性は何をしますか?

リング形状を使用することはできませんか?リング形状を作成するために楕円形を使用するのはなぜですか?

4

1 に答える 1