If you don't like the FAB (FloatingActionButton) default color you can set a custom one using backgroundTint property/attribute.
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".ToDoMainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_to_do_main" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabicon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:backgroundTint="#ccc"
android:src="@android:drawable/ic_dialog_email" />
</android.support.design.widget.CoordinatorLayout>
Note: app:backgroundTint may not work of older device.
- JDK Location in Android Studio
- How to install Android Studio Chipmunk and SDK tools on macOS (2021.2)
- [Android Studio] MainActivity does not exist
- [Android Studio] Hardcoded string Button, should use @string resource
- Android Studio : Connection Error : Failed to download patch file
- [Android Studio] Could not automatically detect an ADB binary
- Show Android Studio Emulator in a Separate Window
- Android Emulator Screenshot saved location
- How to Import External Jars to Android Studio Project
- How to remove Floating Action Button Android Studio Blank Activity Template
- Error running 'app': No target device found.
- Use Netbeans keyboard shortcuts in Android Studio
- Instant Run requires Tools | Android | Enable ADB integration to be enabled
- [Solved] Error launching studio
- [Android Studio] Error: Missing system image on device
- Android Studio 1.3 beta now Available for Developers
- Android Studio : Change FAB icon color : FloatingActionButton
- Android Studio emulator/Device logCat logs not displayed
- Delete Android Studio Projects
- Android Emulator window was out of view and was recentered
- Android Studio NoClassDefFoundError: java.awt.Toolkit
- Installing Android Studio Dolphin on Mac with Apple (M1/M2) Chip
- Android Studio : Implement abstract methods shortcut
- Check Android Studio App is M1/M2 Chip based post installation
- Android Studio: Cannot perform refactoring operation
- How to kill service running on a port on Ubuntu Linux - Ubuntu
- macOS Ventura 13: The default interactive shell is now zsh - zsh
- Android Development - How to switch between two Activities - Android
- MySQL: Error Code: 1175 You are using safe update mode - MySQL
- [Updated] macOS 13 Ventura Supported Mac Devices List - MacOS
- Fix: Maven - Failed to execute goal - Compilation failure - Source/Target option 5 is no longer supported. Use 7 or later - Java
- How to Hum a Song to Google to find it out! [Android and iPhone] - Google
- Program 5: Find Sum of Two Integer Numbers - 1000+ Python Programs - Python-Programs