vxh.viet
5/5/2016 - 3:23 AM

Draw transparent circle in xml

Draw transparent circle in xml

Source: StackOverflow, StackOverflow

Question: How to draw a transparent cirlcle in xml?

Answer:

Create a cirlce.xml in drawable folder with this:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="oval">
    <solid android:color="#80FFFFFF"/>
    <stroke
        android:width="5dp"
        android:color="#E6ffffff"/>
</shape>

For transparency value look at the 2nd reference link.