There is a shape (back.xml):
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="85dp" android:shape="ring" android:thickness="5dp" android:useLevel="false"> <solid android:color="#FF0000"> </solid> <size android:height="200dp" android:width="200dp"> </size> </shape>
This shape is the background for TextView:
<TextView android:id="@+id/fullscreen_content" android:layout_width="200dp" android:layout_height="200dp" android:keepScreenOn="true" android:textColor="#33b5e5" android:textStyle="bold" android:textSize="50sp" android:gravity="center" android:text="@string/dummy_content" android:layout_gravity="center" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="105dp" android:background="@drawable/back" />
As a result, it is necessary that the color of this ring (shape) around the text (textview) is constantly animated (smoothly) changed to random (randomcolor - decided).
This effect of changing color for shape is needed.