I am trying to use the Floating Action Button (FAB) in my application. However, when I declare the same, I get an error:
android.support.design.widget.FloatingActionButton could not be instantiated.
I added the following commands to my gradle file:
compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.android.support:support-v4:23.1.1'
I also tried adding the following to the parent style:
parent="@style/Theme.AppCompat"
Also tried to have an Activity extend Activity class, as well as an AppCompatActivity .
Am I missing something? Pls. help
source share