Android - Make dotter line - Drawable
Create drawable file: dotter_line.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:width="1dp"
android:color="#BDBDBD"
android:dashGap="8dp"
android:dashWidth="7dp" />
</shape>
<rotate
android:fromDegrees="90"
android:toDegrees="90"
android:drawable="@drawable/dotter_line"/>
android:layerType="software"
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:width="1dp"
android:color="#BDBDBD"
android:dashGap="8dp"
android:dashWidth="7dp" />
</shape>
Want rotate? create another drawable file:
android:fromDegrees="90"
android:toDegrees="90"
android:drawable="@drawable/dotter_line"/>
Use in View: maybe need this :
Nhận xét
Đăng nhận xét