Question: From the sample in the `SDK` for floating action buttons I have a `drawable`:

```
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
    <ripple android:color="@color/primary_light">
        <item>
            <shape android:shape="oval">
                <solid android:color="@color/primary" />
            </shape>
        </item>
    </ripple>
</item>

<item>
    <ripple android:color="@color/primary_light">
        <item>
            <shape android:shape="oval">
                <solid android:color="@color/primary" />
            </shape>
        </item>
    </ripple>
</item>
</selector>

```

and I'm setting my `TextView` background: 

```
android:background="@drawable/fab_background"

```

Is there a way that I can access `fab_background` or edit my `TextView` background itself to change the color of my FAB?

Answer: 
You can change color of FAB by setting the following attribute of `<android.support.design.widget.FloatingActionButton>` in the layout xml:

```
app:backgroundTint="#ff0000"

```
You can simply try this code ,worked for me

```
            app:backgroundTint="@color/colorPrimaryDark"

```