Android toolbar menu

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Jun 19, 2017, 9:12:29 PM via Website


I am trying to understand the code for the Android Toolbar Menu.
What does this code do?

FloatingActionButton fab = (FloatingActionButton) findViewById(;
fab.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
        Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                .setAction("Action", null).show();

Recommended articles