Кастомный разделитель RecyclerView | Kotlin | CustomDivider
Надо сделать вот такой разделитель, как на первом изображении. Сделал TextView с точкой слева, но не получается сделать полосы. Они просто растягиваются на весь layout_width.
Изображение 2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/firstColor">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:drawableLeft="@drawable/icon_dot"
android:drawablePadding="5dp"
android:fontFamily="@font/roboto"
android:gravity="left|center_vertical"
android:text="TextView"
android:textColor="@color/regularWhiteText" />
</LinearLayout>
Изображение 3
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
android:shape="rectangle">
<size android:width="1dp" android:height="4dp" />
<solid android:color="@color/regularWhiteText" />
</shape>
</item>
</selector>


