Border around transparent button
<p>I am trying to create a border with round corners on transparent button like this:</p>

<p><img src="https://i.stack.imgur.com/VhZnN.png" alt="enter image description here"></p>

<p>here is my transparent.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;item android:drawable="@color/blue" android:state_pressed="true"/&gt;
&lt;item android:drawable="@android:color/transparent"/&gt;  
&lt;/selector&gt;
</code></pre>