Android/.xml
Shape Drawable(Line)
ITPangPang
2016. 5. 15. 15:28
Shape Drawable
(Line)
(1) stroke
Stroke
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#000000"
android:width="10dp"
/>
</shape>
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#FFFF00"
android:width="1dp"
/>
</shape>
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#FF0000"
android:width="40dp"
android:dashGap="5dp"
android:dashWidth="2dp"
/>
</shape>
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#F5F5F3"
android:width="200dp"
android:dashGap="40dp"
android:dashWidth="3dp"
/>
</shape>
+