question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Direct nearby uploads fab buttons visibility problem

See original GitHub issue

Summary: On Direct Nearby Uploads New branch visibilities of FABs are problematic.

Steps to reproduce:

Get the code in directNearbyUploadsNew branch.

  • Go Nearby Activity.
  • Select a marker.
  • Click to plus fab
  • Press back button until bottom sheet is hidden.
  • You will see FABs on left upper corner for a moment.*
  • If you try to click around naw draver icon FABs will appear again with their actions (Yes this happens 😃)

Expected behavior:

  • FABs shouldn’t displayed on left corner for a moment
  • FABs should stay hidden even if we touch on their position

Observed behavior:

  • FABs on the corner

Device and Android version: API 19

Screen-shots: test

Would you like to work on the issue? I already did, twice… Firstly I learned I have to remove anchors to be able to hide FABs. We already do this in current code:

    private void hideFAB() {
        //get rid of anchors
        //Somehow this was the only way https://stackoverflow.com/questions/32732932/floatingactionbutton-visible-for-sometime-even-if-visibility-is-set-to-gone
        CoordinatorLayout.LayoutParams p = (CoordinatorLayout.LayoutParams) fabPlus
                .getLayoutParams();
        p.setAnchorId(View.NO_ID);
        fabPlus.setLayoutParams(p);
        fabPlus.hide();
        fabCamera.hide();
        fabGallery.hide();
    }

    private void showFAB() {
        CoordinatorLayout.LayoutParams p = (CoordinatorLayout.LayoutParams) fabPlus.getLayoutParams();
        p.setAnchorId(getActivity().findViewById(R.id.bottom_sheet_details).getId());
        fabPlus.setLayoutParams(p);
        fabPlus.show();
    }

There is similar complaints on the comments under this issue: https://stackoverflow.com/questions/31269958/floatingactionbutton-doesnt-hide However I couldn’t find a solution yet.

  • Does anyone experienced this before?
  • Do you able to reproduce this after lollipop?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
neslihanturancommented, Mar 16, 2018

Actually they are visible, our problem is a little different. But still I will be appreciated if you find a solution. However, I suggest not to assign this task to nobody (so that everyone can try to find a solution simultaneously) since it needs to be solved as soon as possible.

0reactions
neslihanturancommented, Mar 20, 2018

Actually if you look at the referenced PR, you will see this issue is solved already.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - FloatingActionButton doesn't hide - Stack Overflow
It is due to the app:layout_anchor attribute. You must get rid of the anchor before changing visibility: CoordinatorLayout.
Read more >
Create an expandable FAB - Flutter documentation
Start by creating a new stateful widget called ExpandableFab . This widget displays the primary FAB and coordinates the expansion and collapse of...
Read more >
Manual THE FAB Englisch.docx - hazebase
To do this, please select the "channel" button at the top right. Four possible keys (channels) are now visible in the value area....
Read more >
Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets ...
Buttonizer is the most versatile Smart Floating Action (Sticky) Button plugin for WordPress. Choose from over 40 click actions and chat buttons ......
Read more >
Floating Action Button - Kodular Docs
A non-visible component that is used to create Floating Action Buttons. Floating Action Buttons are used to indicate the primary action of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found