Created
August 19, 2019 13:35
-
-
Save hitesh-dhamshaniya/5f17255b7003296c6112b41fd0fffbd1 to your computer and use it in GitHub Desktop.
While use fab button in android application and find difficulties to set tint color of fab button, use below code to set desire color. I have spend many hours to resolve the issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.google.android.material.floatingactionbutton.FloatingActionButton | |
android:id="@+id/fab" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="16dp" | |
android:layout_gravity="bottom|end" | |
app:fabSize="normal" | |
app:tint="@color/colorAccent" | |
app:srcCompat="@drawable/ic_google"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment