RuntimeException: Could not inflate Behavior subclass
Add the following two constructors to your FooterBehavior
:
public FooterBehavior() {}public FooterBehavior(Context context, AttributeSet attrs) { super(context, attrs);}
Make sure that you are using the correct path of the custom behavior class.
For example:
app:layout_behavior="net.company.myapp.view.behavior.TextViewBehavior"
If you are using AndroidX (open-source project that the Android team uses to develop, test, package, version and release libraries within Jetpack) then you need to update XML.
Find your element here and replace:
Support:
android.support.design.widget.FloatingActionButton
AndroidX:
com.google.android.material.floatingactionbutton.FloatingActionButton