In API 21, the floating action button no icon in newer versions of android, everything is fine.

Connected:
'com.android.support:appcompat-v7:23.4.0'
'com.android.support:design:23.4.0'

 <android.support.design.widget.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/fab" android:layout_gravity="bottom|end" android:layout_margin="20dp" android:src="@drawable/plus" /> 

Drowable:

 <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:height="5dp" android:width="1dp" android:left="2dp"> <shape android:shape="rectangle"> <solid android:color="#ffffff"/> </shape> </item> <item android:width="5dp" android:height="1dp" android:top="2dp"> <shape android:shape="rectangle"> <solid android:color="#ffffff"/> </shape> </item> 

enter image description here

  • Well, even looking at the drawable code, there is no connection to the picture) - iFr0z
  • @ iFr0z I do not have a picture, but with the help of the shape icon is made and the android:src="@drawable/plus" connected android:src="@drawable/plus" - Bleser
  • try 'android: src = "@ android: drawable / plus"' - iFr0z
  • @ iFr0z in this way you access resources that are located in the android itself (system resources) - a person wants his own button. - pavlofff

0