1

I need to know what api version support the fab element in android.

bradkratky
  • 1,577
  • 1
  • 14
  • 28
Andres Camacho
  • 367
  • 4
  • 17

4 Answers4

3

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

Ed Holloway-George
  • 5,092
  • 2
  • 37
  • 66
2

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

Community
  • 1
  • 1
bradkratky
  • 1,577
  • 1
  • 14
  • 28
0

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

Sergey Shustikov
  • 15,377
  • 12
  • 67
  • 119
0

mine api it support is 7+. if i am not wrong.