How to change android design support library FAB Button border color?

Jiho Heo

I want to change fab button border color. border color is white, inside color is black or transparent

I'd like my button to look like this:

This is how it should look like

Vipul Asri

fab.xml in drawable

<?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:innerRadius="0dp"
    android:shape="ring"
    android:thicknessRatio="2"
    android:useLevel="false" >
    <solid android:color="@android:color/transparent" />

    <stroke
        android:width="3dp"
        android:color="@android:color/white" />
</shape>

Floating Action Button in layout

<android.support.design.widget.FloatingActionButton
        android:id="@+id/buttton_float"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_action_social_notifications"
        android:background="@drawable/fab"
        android:layout_margin="@dimen/fab_margin"
        android:layout_gravity="bottom|right"
        app:fabSize="normal"
        app:backgroundTint="@android:color/white"
        app:rippleColor="@android:color/black"
        app:borderWidth="0dp"
        app:elevation="2dp"
        app:pressedTranslationZ="12dp"/>

Note : The custom design for your FAB is against the guidelines of Google Material Design for Floating Action Button

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to add shadow to the FAB provided with the android support design library?

From Dev

Android Design Support Library FAB in a ViewPager Fragment with Coordinator Layout

From Dev

How to change the length of underline in TabLayout (Android Design Support Library )

From Dev

Android drawable canvas - Change border design and color

From Dev

Android design library FAB no shadow

From Dev

How to set a button border color programmatically in Android?

From Dev

Border color on Android button

From Dev

Android Button Border Color

From Dev

Android Design Support Library

From Dev

How do I change the color of a button, not just the border around it?

From Dev

Is this a bug in Android support design Library?

From Dev

Android Design Support Library and TabLayout

From Dev

How to add "Android Design Support Library" to Eclipse with ADT-plugin?

From Dev

How to set text color in android.support.design.chip.Chip?

From Java

How to change color of Toolbar back button in Android?

From Dev

How to change text background color of a button in Android?

From Dev

How to change the text color of Radio Button in Android?

From Dev

How to change spinner button color in Android?

From Dev

How to change indicator color in Toggle Button ( Android)

From Dev

Android how to change the button color by the text

From Dev

how to change color of pen on button click in android

From Dev

How to change text background color of a button in Android?

From Dev

How to change switch button color in android

From Dev

How to change Android Toggle/LabeledSwitch border color programatically?

From Dev

How to change a SplitContainer border color?

From Dev

How to change border color in div ?

From Dev

How to change QTableView border color?

From Dev

How to change SearchBar border color

From Dev

How to change border color in div ?

Related Related

  1. 1

    How to add shadow to the FAB provided with the android support design library?

  2. 2

    Android Design Support Library FAB in a ViewPager Fragment with Coordinator Layout

  3. 3

    How to change the length of underline in TabLayout (Android Design Support Library )

  4. 4

    Android drawable canvas - Change border design and color

  5. 5

    Android design library FAB no shadow

  6. 6

    How to set a button border color programmatically in Android?

  7. 7

    Border color on Android button

  8. 8

    Android Button Border Color

  9. 9

    Android Design Support Library

  10. 10

    How do I change the color of a button, not just the border around it?

  11. 11

    Is this a bug in Android support design Library?

  12. 12

    Android Design Support Library and TabLayout

  13. 13

    How to add "Android Design Support Library" to Eclipse with ADT-plugin?

  14. 14

    How to set text color in android.support.design.chip.Chip?

  15. 15

    How to change color of Toolbar back button in Android?

  16. 16

    How to change text background color of a button in Android?

  17. 17

    How to change the text color of Radio Button in Android?

  18. 18

    How to change spinner button color in Android?

  19. 19

    How to change indicator color in Toggle Button ( Android)

  20. 20

    Android how to change the button color by the text

  21. 21

    how to change color of pen on button click in android

  22. 22

    How to change text background color of a button in Android?

  23. 23

    How to change switch button color in android

  24. 24

    How to change Android Toggle/LabeledSwitch border color programatically?

  25. 25

    How to change a SplitContainer border color?

  26. 26

    How to change border color in div ?

  27. 27

    How to change QTableView border color?

  28. 28

    How to change SearchBar border color

  29. 29

    How to change border color in div ?

HotTag

Archive