Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.23k stars 1.13k forks source link

My App is stopped when I run the code!! #396

Open AlaaEddinAlbarghoth opened 7 years ago

AlaaEddinAlbarghoth commented 7 years ago

Hi, I followed this tutorial: http://androidmkab.com/2016/06/07/android-floating-action-menu-with-social-icons-androidmkab/

But when I run the code it's stopped. When I run the code in debug mode, it gives me the following error: "Frame is not available", Here is the line of code in my MainActivity when my app stop:

floatingActionButton1= (FloatingActionButton) findViewById(R.id.floating_facebook);

In my view my code is:

<com.github.clans.fab.FloatingActionButton
                android:id="@+id/floating_facebook"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_edit"
                fab:fab_size="mini" />

How can I fix this ? thanks in advance

@Clans @anothem