Solo
- Forum posts: 1
Jun 19, 2017, 9:12:29 PM via Website
Jun 19, 2017 9:12:29 PM via Website
Hi,
I am trying to understand the code for the Android Toolbar Menu.
What does this code do?
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.