Open dmfrey opened 7 years ago
I faced the same error today.
It's because of
app:layout_behavior="org.mythtv.android.presentation.utils.ScrollAwareFABBehavior"
attribute inside res/layout/phone_fab_view.xml. Place this behavior attribute into FloatingActionButton instead FABProgressCircle. This behavior is applicable to only FloatingActionButton and not for any other view so Android framework expects the view with this bahavior to be FloatingActionButton.
@arjunvekariyagithub thank you, I will give this a shot.
@arjunvekariyagithub thank you, that fixed the issue. I was still running into an NPE when trying to call .show()
. However, I saw another issue that said to call .onMeasure(15,15)
. I don't believe that is a long-term fix, though.
Here is the stacktrace:
res/layout/phone_fab_view.xml (gets included in other layouts):
res/layout/activity_phone_main.xml
res/layout/fragment_media_item_list.xml (includes the fab layout):
FABCircleProgress is loaded with ButterKnife
Adapter is loading the RecyclerView, listener is starting/stopping/hiding the animations like described. For some reason, the FABCircleProgress is trying to be cast as a FloatingActionButton in the Coordinator layout.
Any ideas?