Skip to content

Instantly share code, notes, and snippets.

@Devansh-Maurya
Created August 22, 2018 14:01
Show Gist options
  • 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