I need to know what api version support the fab element in android.
4 Answers
The blog post for the Design Support Library release, of which FloatingActionButton
is a part of, states the following:
With a little help from the new Android Design Support Library, we’re bringing a number of important material design components to all developers and to all Android 2.1 or higher devices.
Android 2.1 is API level 7, so apps targeting 7 and above can use FloatingActionButton

- 5,092
- 2
- 37
- 66
The FloatingActionButton is available to API 7 (android 2.1), as it was added to the Android Support library in 2015: http://android-developers.blogspot.ca/2015/05/android-design-support-library.html
To use the fab using the support library you can use the answer provided here: https://stackoverflow.com/a/31753179/6543020

- 1
- 1

- 1,577
- 1
- 14
- 28
And analogue from shamanland - FAB Library also works from the Android 2.1, API level 7
.

- 15,377
- 12
- 67
- 119