How to create a button with border and transparent background android

Axlr

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?

Reza.Abedini

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.

edited at
0

Comments

0 comments
Login to comment

Related

How to create button with gradient border and transparent background

Button Border with Transparent Background in Swift

Polygon border of a button with transparent background

How to make button have transparent border that will show background of element below

Flat button with background, or transparent background but with border

How to create semi transparent linear gradient background and border using css?

Cut out a piece of a border on button with transparent background

Button with transparent background and rotating gradient border

How to have transparent background for button?

How to set a button background to transparent?

How to create a map with transparent background?

iText 7 : image field (button) without border nor background (transparent)

Transparent border with background color

How to create square button in android for background?

How to create android button background svg with elevation?

How to create a circular button in android with image in the background?

How to create a transparent border using CSS in a subclass?

How to create circle imageview with a transparent border?

Button with transparent background darkens in Lollipop Android

Android : Create a button with border bottom

Border around transparent button

How to set background of radio button opaque /transparent?

How to draw a rectangle with black border and background transparent on Imageview?

How can I show icon with transparent background and white border?

How to create Splash screen with transparent background in JavaFX

How to create a png with transparent background in inkscape?

how to create a slanted transparent shape with background image?

how to create bootstrap modal with transparent background

How to create a Venn diagram with a transparent background in R?