A floating action button (FAB) performs the primary, or most common, action on a screen. It appears in front of all screen content, typically as a circular shape with an icon in its center. FABs come in three types: regular, mini, and extended.
Only use a FAB if it is the most suitable way to present a screen’s primary action.
FloatingActionButton fabButton = findViewById(R.id.fab); // Replace 'fab' with View id fabButton.setOnClickListener(new View.OnClickListener() { // Set onClickListener @Override public void onClick(View view) { // Create a new intent to start another Activity Intent addNewIntent = new Intent(MainActivity.this, NewActivity.class); startActivity(addNewIntent); } });ud851-Exercises-student\Lesson09-ToDo-List\T09.01
