34,333
edits
Changes
→Basic vs. Empty Activity Templates
setContentView(R.layout.activity_state_change)
setSupportActionBar(toolbar)
}
</pre>
If you need a floating action button but no menu, use the Basic Activity template and follow these steps:
1. Edit the activity class file and delete the onCreateOptionsMenu and onOptionsItemSelected methods.
2. Select the res -> menu item in the Project tool window and tap the keyboard Delete key to remove the folder and corresponding menu resource files from the project.
<htmlet>as30kotlin</htmlet>
== The Android Studio Layout Editor ==