0

On samsung galaxy s4 mini I don't see a FloatingActionButton but on samsung galaxy s6 (API 23) I see this buttons. This is how I add this buttons :

  <android.support.design.widget.FloatingActionButton
        android:id="@+id/qick_menu_bt"
        android:layout_width="wrap_content"
        android:layout_height="55dp"
        android:layout_margin="20dp"
        android:src="@drawable/quick_menu"
        app:layout_anchor="@id/mapview"
        app:layout_anchorGravity="bottom|right|end" />


    <android.support.design.widget.FloatingActionButton
        android:id="@+id/list"
        android:layout_width="wrap_content"
        android:layout_height="55dp"
        android:layout_margin="20dp"
        android:src="@drawable/lista"
        app:layout_anchor="@id/mapview"
        app:layout_anchorGravity="bottom|left|end" />

In Android Studio Preview I see this buttons , but on phone I don't see . And this I add in build.gradle :

compile 'com.android.support:design:23.0.1'
Omore
  • 614
  • 6
  • 18
Krzysztof Pokrywka
  • 1,356
  • 4
  • 27
  • 50

1 Answers1

-1

https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html

As mentioned in the android documentation FAB is added in API 21 and above, So you have to made it customized for API 19 but that is not the recommended way

Use this might be it will works

compile 'com.android.support:design:22.2.0'
Rider
  • 131
  • 7