Galerinha, estou tentando criar uma linha de divisão em meu App conforme demonstrado abaixo.
drawable/dotted.xml:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#C7B299"
android:dashWidth="10px"
android:dashGap="10px"
android:width="1dp"/>
</shape>
view.xml:
<ImageView
android:layout_width="match_parent"
android:layout_height="5dp"
android:src="@drawable/dotted"
android:layerType="software" />
Porém não está funcionando corretamente, ao invés de ficar uma linha pontilhada está ficando uma linha reta.
Alguém saberia me dizer o motivo?