Throws an error: Cannot resolve method AttachToListView.

Inside onCreate:

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fabb); fab.attachToListView(lvMain); fab.setShadow(true); 

Tell me, please, what is wrong?

  • 2
    because FloatingActionButton does not have an attachToListView method (like the setShadow method). If you use any third-party libraries, then provide links to them. - mit
  • Like this? import com.melnykov.fab.FloatingActionButton; import com.melnykov.fab.ObservableScrollView; import com.melnykov.fab.ScrollDirectionListener; - Lobs

0