Bug with anchored FloatingActionButton in support library 24.2.1

前端 未结 5 2420
一整个雨季
一整个雨季 2021-02-19 16:45

I have been having this issue since 24.2.0, but now I\'m using 24.2.1 and the bug is still here, it only works well <= 24.1.1.

I have an anchored FloatingActionButton

5条回答
  •  耶瑟儿~
    2021-02-19 17:34

    The solution was to set the FloatingActionButton visibility to GONE in the XML and when the map is ready set it back to VISIBLE.

    @Override
    public void onMapReady(GoogleMap googleMap) {
        . . .
        yourFAB.setVisibility(View.VISIBLE);
    }
    

    EDIT: This is a workaround for this bug.

提交回复
热议问题