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,
- Locate MainActivity Java or Kotlin file in Android Studio
- Android Studio setup was canceled - How to resume
- The selected device is incompatible : Android Studio
- Android Studio : Change FAB icon color : FloatingActionButton
- How to rename package name in Android Studio
- Android Emulator Screenshot saved location
- Android Activity Main xml stuck loading
- [Solution] Android Studio does not displays Toolbar in Layout Design
- [Event Log] Android Studio performance could be improved
- The package must have at least one . separator [Android Studio]
- Android Studio SDK Build-tools 23 rc2 not getting installed
- Android Emulator window was out of view and was recentered
- Emulator: Warning: restoring GLES1 context from snapshot. App may need reloading.
- How to Import External Jars to Android Studio Project
- How to install Android Studio Chipmunk and SDK tools on macOS (2021.2)
- Create assets folder in Android Studio
- Eclipse like Auto Import Shortcut in Intelij IDE Android Studio
- Android Emulator 5.1.1 not loading on Mac OS X Android Studio
- Your Android SDK is missing, out of date or corrupted SDK Problem
- macOS Big Sur java.lang.UnsatisfiedLinkError CoreFoundation - Android Studio
- [Android Studio] How to locate code for activity_main.xml
- groovy.lang.MissingPropertyException No such property Error
- Installing Android Studio Dolphin on Mac with Apple (M1/M2) Chip
- Step-by-Step: How to install Flutter in Android Studio
- [Solved] Error launching studio
More Posts:
- How to remove Extra Spaces in Notepad++ - NotepadPlusPlus
- Two Ways to Extract rar (*.rar) files on Mac - MacOS
- Java Multi-line String Example - Java
- Java 8 Leap year check using Year class from java.time api - Java
- Microsoft Lists and SharePoint Online edit grid view - use undo and redo changes - SharePoint
- How to get SharePoint List Item URL using PowerShell - SharePoint
- Docker Commit Command with Examples - Docker
- How to get Java Thread name Example [Program] - Java