Skip to content

Instantly share code, notes, and snippets.

@mstssk
Created December 27, 2012 16:58
Show Gist options
  • Save mstssk/4389858 to your computer and use it in GitHub Desktop.
Save mstssk/4389858 to your computer and use it in GitHub Desktop.
ovalのshapeはstrokeのdashGap,dashWidthを調整すれば円弧が描ける
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
... その他のitem要素 ...
<!-- nose, left -->
<item
android:bottom="247dp"
android:left="113dp"
android:right="155dp"
android:top="121dp">
<shape android:shape="oval" >
<stroke
android:dashGap="25dp"
android:dashWidth="60dp"
android:width="5dp"
android:color="@android:color/black" />
<solid android:color="@android:color/transparent" />
</shape>
</item>
<!-- nose, right -->
<item
android:bottom="247dp"
android:left="140dp"
android:right="128dp"
android:top="121dp">
<shape android:shape="oval" >
<stroke
android:dashGap="25dp"
android:dashWidth="45dp"
android:width="5dp"
android:color="@android:color/black" />
<solid android:color="@android:color/transparent" />
</shape>
</item>
... その他のitem要素 ...
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment