1

Someone knows how to insert that type of lines separating the textview fields ?

Like this:

enter image description here

Siddhesh Dighe
  • 2,894
  • 3
  • 16
  • 16

3 Answers3

1

Use something like:

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"/>

anyway you can look it up more on:

Android Drawing Separator/Divider Line in Layout?

Community
  • 1
  • 1
Kushan
  • 5,855
  • 3
  • 31
  • 45
0

use like this

<View android:layout_width="match_parent" android:layout_height="1dp" android:background="@android:color/darker_gray"/>

SaravInfern
  • 3,338
  • 1
  • 20
  • 44
0

Use the code below to draw the line between the textViews and put margins on the left and right side

    <ImageView
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:layout_marginLeft="8dp"
    android:layout_marginRight="8dp"
    android:src="#000" />
Kushan
  • 5,855
  • 3
  • 31
  • 45
Justin Slade
  • 500
  • 2
  • 7