How to make a background of a button transparent with visible border in Android?

Viewed 3760

This is the coding of the button. I want to make only borders visible and background of the button should be invisible.But with this code everything is becoming invisible.

<Button
    android:id="@+id/button3"
    android:layout_width="200dp"
    android:layout_height="60dp"
    android:text="Sign In"
    android:textAllCaps="false"
    android:layout_gravity="center"
    android:layout_marginTop="50dp"
    android:textColor="@color/white"
   android:background="@android:color/transparent"

enter image description here

I want my button to look like this.

4 Answers
Related