Floating Action Button does not responds when it clicked/touched

前端 未结 2 1235
小鲜肉
小鲜肉 2020-12-14 22:09

I am using a floating action button(FAB) in my application to show Dialogs, everything is worked just fine when I tested my app in Xperia Z with Lopllipop 5.1.1.
However

2条回答
  •  Happy的楠姐
    2020-12-14 23:04

    Programmatically bringing the FAB to front should also work:

    FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.bringToFront();
    fab.setOnClickListener... //etc
    

提交回复
热议问题