Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android FAB plus sign not present on android drawable

Where can I find the plus sign at the center of a Floating Action Button?

Is it made by Android or do I need to do it by my self?

like image 892
Roberto Aureli Avatar asked Apr 01 '16 17:04

Roberto Aureli


People also ask

What is a floating action button?

Floating action buttons are used for a special type of promoted action. They are distinguished by a circled icon floating above the UI and have special motion behaviors related to morphing, launching, and the transferring anchor point. Floating action buttons come in two sizes: the default and the mini.

How do I change the color of my fab icon?

To change icon color of Floating Action Button in Kotlin Android we have to set the tint attribute (in layout file) or imageTintList parameter (in Kotlin program) of FAB with the required color.


2 Answers

You can find the plus icon on the Vector Asset Studio.

  1. In Android Studio, open an Android app project.
  2. In the Project window, select the Android view.
  3. Right-click the res folder and select New > Vector Asset.
  4. Click the Android icon Button and look for the plus sign

More info here: https://developer.android.com/studio/write/vector-asset-studio.html#materialicon

like image 129
Wilder Pereira Avatar answered Sep 27 '22 20:09

Wilder Pereira


You can get the Material Icons:

1.Online - from the Material Design Website. The plus icon is called 'add'. Select the icon, pick a colour & size and download the png or svg resource.

2.From Android Studio - using Vector Asset Studio. Check the link for more information. (as suggested by Wilder Pereira in the post below)

like image 44
Dmitri Timofti Avatar answered Sep 27 '22 20:09

Dmitri Timofti