I'm trying to make the items in my list look like in figure 2, but they only look like in figure 1. I researched a lot about it, but I found very little about it (nor do I know very well what to search).
FollowmyXMLfile:
<?xmlversion="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:id="@+id/lista_linhas"
android:padding="5dp">
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:background="@drawable/border_radius"
android:layout_margin="0dp"
android:padding="0dp"
android:id="@+id/teste"
android:layout_centerInParent="true"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:padding="0dp"
android:id="@+id/circulo">
<TextView
android:layout_width="5dp"
android:layout_height="48dp"
android:layout_margin="0dp"
android:padding="0dp"
android:layout_alignParentLeft="true"
android:id="@+id/cor_esquerda" />
<TextView
android:layout_width="38dp"
android:layout_height="48dp"
android:layout_margin="0dp"
android:padding="0dp"
android:gravity="center"
android:textAlignment="center"
android:layout_centerInParent="true"
android:textColor="@color/preto"
android:id="@+id/numero" />
<TextView
android:layout_width="5dp"
android:layout_height="48dp"
android:layout_margin="0dp"
android:padding="0dp"
android:layout_alignParentRight="true"
android:id="@+id/cor_direita" />
</RelativeLayout>
</RelativeLayout>
border-radius.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#ffffff" />
<padding
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<corners android:radius="50dp" />
</shape>