0
我想在layer-list
中繪製兩個相同大小的圓。這裏是XML代碼:分層數組中的圖形大小不一樣
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:top="0dp" android:left="0dp">
<shape android:shape="oval" >
<size
android:height="@dimen/clickable"
android:width="@dimen/clickable" />
<solid android:color="#ff000000" />
</shape>
</item>
<item android:top="32dp" android:left="32dp">
<shape android:shape="oval" >
<size
android:height="@dimen/clickable"
android:width="@dimen/clickable" />
<solid android:color="#ffffff00" />
</shape>
</item>
</layer-list>
但結果繪製的是這樣的:
我預計在相同尺寸兩圈。哪裏不對?