How to make such a strip in CardView?
2 answers
<View android:layout_width="match_parent" android:layout_height="1dp" android:background="@color/colorGray" /> If you need to add layout_margin
|
I usually did this, sometimes I paint on the canvas, he even has flags, mb this option is right for you:
drawable:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:left="-2dp" android:top="-2dp" android:right="-2dp"> <shape android:shape="rectangle"> <solid android:color="@android:color/transparent" /> <stroke android:width="1dp" android:color="@color/divider_color" /> </shape> </item> </layer-list> Further as usual:
android:background="@drawable/my_divider" |

TextView(or what is this widget) background with such a strip below? - pavlofff