Closed JeffreyCA closed 4 years ago
Unlike your demo, my sliding up panel never reaches full height of the screen. I used layout_weight
to set the maximum height to a percentage of the screen. Because of this, the button never fully fades away.
I've narrowed down the bug to the fade mechanism. When sothree:umanoFabMode
is set to fade
, this bug happens. When set to leave_behind
or circular_reveal
, the FAB shows up and hides as expected.
I think it is something with this commit.
@JeffreyCA Thanks for reporting this issue, I'll take a look at it as soon as I can!
So below is what I have for my listeners:
The FAB is visible upon application launch. When I drag the bottom view up to expand it, the FAB fades (as stated in the XML file sothree:umanoFabMode="fade"), and then is hidden from view after
onPanelExpanded
is called. I get the Log message as well. Now when I drag the view down to collapse it, the FAB does not show up, but the Log message in theonPanelCollapsed
method is triggered. Even though I putfab.show();
in theonPanelCollapsed
method, when triggered, the FAB does not appear. No matter how many times I expand and collapse the bottom view, the FAB never appears.Now this is where it gets interesting. Here is the entry for the FAB in my XML file:
If I add
android:visibility="gone"
to the entry above, when I launch the application the FAB does not appear. When I expand the bottom view it does not appear either. But when I collapse it, the FAB re-appears. This is almost what I want, except that the FAB should be visible upon initial launch. The FAB re-appears and disappears as it should upon collapsing or expanding after that.Could you please look into this issue? Thank you very much.