//绿色 <?xml version="1.0" encoding="utf-8"?> <shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android"> <size android:width="12dp" android:height="12dp"/> <solid android:color="#009900"/> </shape> //椭圆绿色,按钮背景
<?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#339933" /> <size android:width="90dp" android:height="40dp"/> <corners android:bottomLeftRadius="70dp" android:bottomRightRadius="70dp" android:topRightRadius="70dp" android:topLeftRadius="70dp"/> </shape> //红色
<?xml version="1.0" encoding="utf-8"?> <shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android"> <size android:width="12dp" android:height="12dp"/> <solid android:color="#ff6666"/> </shape> //空心圆
<?xml version="1.0" encoding="utf-8"?> <shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="1dp" android:color="#000000"></stroke> <size android:width="5dp" android:height="5dp"/> </shape> //橘色的正方形
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ff6600"></solid> <size android:height="100dp" android:width="100dp"></size> <corners android:bottomLeftRadius="10dp" android:bottomRightRadius="10dp" android:topRightRadius="10dp" android:topLeftRadius="10dp"></corners> </shape>