How can I create this type of a button in android which has only borders and is transparent, like the "ADD" button in the picture below?
P.S. This is a picture from Ludmila Shevchenko's travel app. Although the screenshot is of ios, I would want to achieve this in android. How can I do it?
you should create a shape in a xml file like below, and set it as your button background
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<solid android:color="@android:color/transparent" />
<stroke
android:width="2dp"
android:color="@color/your_border_color" />
</shape>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments