Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 24, 2019 01:39
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 parzibyte/3bef1c36cccb8f7da5f6eac4994f5d5e to your computer and use it in GitHub Desktop.
Save parzibyte/3bef1c36cccb8f7da5f6eac4994f5d5e to your computer and use it in GitHub Desktop.
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
FloatingActionButton floatingActionButton = view.findViewById(R.id.fabAgregarGasto);
floatingActionButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Aquí el código cuando se hace click
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment