1.绘制实心圆
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false">
<solid android:color="#000" />
<stroke
android:width="1dp"
android:color="#000" />
<size
android:width="20dp"
android:height="20dp" />
</shape>
2. 布局引用
<TextView
android:id="@+id/test"
android:layout_width="30dp"
android:layout_height="30dp"
android:background="@drawable/test"/>
3.动态设置颜色
TextView textView = (TextView) findViewById(R.id.ss);
GradientDrawable mm= (GradientDrawable)textView.getBackground();
mm.setColor(Color.BLACK);