If you create an Android App project in Android Studio and you select a Black Activity Template you will get FAB: Floating Action Button incorporated with the Activity if you do not want it then remove the following code blocks.
1. Remove the following code from onCreate MainActivity.java class.FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
2. Remove the following code from drawable -> layout -> activity_main.xml
<android.support.design.widget.FloatingActionButton android:id="@+id/fab"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
More Posts related to Android-Studio,
- Your Android SDK is missing, out of date or corrupted SDK Problem
- Use Netbeans keyboard shortcuts in Android Studio
- Android Studio NoClassDefFoundError: java.awt.Toolkit
- Create assets folder in Android Studio
- Cannot start Android Studio. No JDK found
- Android Studio emulator/Device logCat logs not displayed
- Android Studio : Implement abstract methods shortcut
- Android Studio 4.2 Canary 1 now available
- Error running 'app': No target device found.
- How to Search Something (string) in Android Studio Project like Eclipse
- Android Studio : Connection Error : Failed to download patch file
- How to enable line numbers in IntelliJ Android Studio for all files
- Building library Gradle Project Info: Downloading services.gradle.org
- AVD Pixel_2_API_15 is already running. [Android Studio]
- How to update Android Studio
- [Android Studio] failed to find Build Tools revision 23.0.0 rc1
- Android Studio SDK Build-tools 23 rc2 not getting installed
- The package must have at least one . separator [Android Studio]
- Android activity main xml stuck loading
- Delete Android Studio Projects
- Failed to install Android.apk on device 'emulator-5554': timeout
- Android Studio java.net.NoRouteToHostException
- Eclipse like Auto Import Shortcut in Intelij IDE Android Studio
- Android Emulator window was out of view and was recentered
- How to remove Floating Action Button Android Studio Blank Activity Template
More Posts:
- Android Studio SDK Build-tools 23 rc2 not getting installed - Android-Studio
- BeanDefinitionStoreException IOException parsing XML document from class path resource [spring.xml] - Java
- Base64 Encoding Decoding In Notepad++ - NotepadPlusPlus
- Your JBoss Application Server 7 is running However you have not yet added any users to be able to access the admin console - Java
- error CAML Query containing special characters - SharePoint
- [javaScript] Convert text case to lowercase - JavaScript
- Disabling Spell Check in Android Studio - Android-Studio
- Disable Chrome Notification bell from Mac OS X menu bar - Mac-OS-X
- How to Undo-Revert Sent Email in Google Gmail - Google
- List of jars required for Struts2 project - Java
- Error : Facebook SDK AndroidRuntime﹕FATAL EXCEPTION: main - Android
- Fail to connect to camera service Android java RuntimeException - Android
- Eclipse Error : The Eclipse executable launcher was unable to locate its companion shared library. - Eclipse
- JavaScript : Get current page address - JavaScript
- Make Android View Scrollable both Horizontally and Vertically - Android