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.
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 : DeviceMonitor] Sending Tracking request failed! Error - Android
- Cut, Copy and Paste commands for mac - MacOS
- How to make Text in TextView bold and italic in Android - Android
- Android Parsing Data for android-L failed Unsupported major.minor version 51.0 Error - Android
- Setting Java_Home Environment variable on Windows Operating System - Java
- Share Image to WhatsApp with Caption from your Android App - WhatsApp
- AlertDialog with image using ImageView Example - Android
- SharePoint PowerShell - How to get list item by ID using GetItemById - SharePoint
- How to add border to Android TextView - Android
- Delete Android Studio Projects - Android-Studio
- Submit html form on dropdown menu value selection or change using javascript - JavaScript
- list of jars required for hibernate 4.x.x - Java
- How to Change Text Size for Android ActionBar - Android
- Eclipse : A java Runtime Environment (JRE) or Java Development kit (JDK) must be available - Java
- SharePoint List redirect user after submitting form NewForm.aspx - SharePoint