Shape Drawable(Line)

Posted by ITPangPang
2016. 5. 15. 15:28 Android/.xml





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>


+

http://itpangpang.xyz/173

'Android > .xml' 카테고리의 다른 글

Layout Weight(Vertical)  (0) 2016.05.15
Layout Weight(Horizontal)  (0) 2016.05.15
Shape Drawable(Oval)  (0) 2016.05.15
Shape Drawable(Rectangle)  (0) 2016.05.15