FloatingActionButton setVisibility() not working

后端 未结 6 1763
闹比i
闹比i 2021-02-07 07:13

I can\'t hide my FloatingActionButton. Here is my code:

XML:



    
         


        
6条回答
  •  死守一世寂寞
    2021-02-07 07:57

    you can disable it and make it semitransparent like this

    fab.setEnabled(false);
    fab.setClickable(false);
    fab.setAlpha(0.3f);
    

提交回复
热议问题