Direct nearby uploads fab buttons visibility problem
See original GitHub issueSummary: 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:
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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Actually if you look at the referenced PR, you will see this issue is solved already.