There is a button:

<android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" android:onClick="onClick2" android:src="@android:drawable/ic_menu_edit" /> 

For her in colors.xml spelled

  <color name="colorAccent">#0b93c4</color> 

Looks like that: enter image description here

How to make a pencil be white?

    2 answers 2

    This icon is set by the android:src attribute. Change the color you can not. You just need to install a new image. I can advise a great plugin that contains a full package of icons. You can download from here

    Then, how to cut it, right click on any package, choose new-> Material design icon. After that a window will open, in the title you type edit (to select a pencil icon), the studio will offer you options for images, choose the one that suits us, color, size, click "OK". In our drawable folders the cut icons will fall. Then in the FAB, fill in the android:src attribute with the path to the icon and see the profit =)

      Just write in the code:

       fab.setColorFilter(Color.argb(255, 255, 255, 255)); 

      Result: enter image description here

      Another filter is fab.setColorFilter(Color.argb(255, 0, 0, 0)); , the same resource.

      Result: enter image description here

      • one
        filters are identical, probably somewhere there should be zeros) - ermak0ff
      • @ ermak0ff, exactly, the line was not copied to see the second time, thanks, corrected. - VAndrJ