Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.23k stars 1.13k forks source link

change the label's color #341

Open chain911 opened 7 years ago

chain911 commented 7 years ago

how to change the default label's color

Fuhrmann commented 7 years ago

You can put fab:menu_labels_colorNormal="YOUR_COLOR_HERE" in your FloatingActionMenu to change the color. Something like this:

<com.github.clans.fab.FloatingActionMenu
        android:id="@+id/fab_menu"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        fab:menu_labels_colorNormal="@color/colorPrimaryDark"
        android:layout_gravity="bottom|end"
        android:layout_margin="@dimen/material_button_fab_edge_margin">

        <com.github.clans.fab.FloatingActionButton
            android:id="@+id/fab_add_history"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:fabSize="mini" />

</com.github.clans.fab.FloatingActionMenu>

Dont forget to add the xmlns:fab namespace: xmlns:fab="http://schemas.android.com/apk/res-auto"

There is a bunch of others configuration, take a look at the README.MD file.