I get the color from the database, and it imposed in the TextView. Now I want to display the TextView in the shape of a circle, but I do not get the circle.
XML file in drawable cerchio_cat.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners
android:bottomLeftRadius="30dp"
android:bottomRightRadius="30dp"
android:topLeftRadius="30dp"
android:topRightRadius="30dp" />
<size
android:height="60dp"
android:width="60dp" />
</shape>
TextView
<TextView
android:id="@+id/color_view"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:gravity="center_horizontal|center_vertical"
android:background="@drawable/cerchio_cat"
android:textSize="28sp" />
tvCerchio = (TextView) row.findViewById(R.id.color_view);
tvCerchio.setBackgroundColor(d.colore);