yavski / fab-speed-dial

FAB flinging out actionable menu items using the Speed dial metaphor
Apache License 2.0
477 stars 122 forks source link

Adding support for individual miniFab drawable tinting #88

Open alanjcaceres opened 5 years ago

alanjcaceres commented 5 years ago

Same set up as customizing the miniFab background. Set up an array resource of colors and add app:miniFabDrawableTintList to the FabSpeedDial XML

Note: This will only work on api 21+(Lollipop or later)

Example:

<integer-array name="fab_menu_item_drawable_colors" >
        <item>@color/holo_green_light</item>
        <item>@color/holo_orange_dark</item>
        <item>@color/holo_purple</item>
</integer-array>
<io.github.yavski.fabspeeddial.FabSpeedDial
    ...
    app:miniFabDrawableTintList="@array/fab_menu_item_drawable_colors" />