Skip to content

Instantly share code, notes, and snippets.

@Devansh-Maurya
Created August 22, 2018 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Devansh-Maurya/d9d1f2eacd47b645cd6ec6704a23f41c to your computer and use it in GitHub Desktop.
Save Devansh-Maurya/d9d1f2eacd47b645cd6ec6704a23f41c to your computer and use it in GitHub Desktop.
FloatingActionButton fab = findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(CatalogActivity.this, EditorActivity.class);
startActivity(intent);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment