Draw the ring code as follows:
Draw the circle, outside the border width is a little larger: <?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=" @color/ Deliverytop "/> <stroke android:width=" 3DP " //value larger, inside circle smaller android:color=" @color/ Deliverybottom "/> <size android:height=" 15DP " android:width=" 15DP "/></shape>
Draw a rectangle with the following code:
<?xml version= "1.0" encoding= "Utf-8"? ><shape xmlns:android= "Http://schemas.android.com/apk/res/android" > <solid android:color= "@color/dark_blue"/> <stroke android:width= "2px" android: Color= "#ffffff"/> <corners android:bottomleftradius= "5DP" android:bottomrightradius= "5DP" android:topleftradius= "5DP" android:toprightradius= "5DP"/></shape>
Android shape Draw Circle, Rectangle