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:
First create a .xml shape resource let's call it ring.xml and put the following in it:
-
-
You will have to play with the thickness and innerRadius attributes to get it right, but that should do it! Also the bitmap source is just a filler, you want to put your F image there.
Then where you declare your fab, reference your ring like such:
android:background="@drawable/ring"
In your java code, do the following:
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setBackgroundResource(R.drawable.ring);
Hope this helps!