@SuppressLint("WrongViewCast") FloatingActionButton fab = findViewById (R.id.button); fab.setOnClickListener(new View.OnClickListener() {