leinardi / leinardi/FloatingActionButtonSpeedDial

Set custom action button color via layout variable

Open
#158 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.5k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

  • Library version: 3.1.1
  • Android version: 10
  • Support library version: com.google.android.material:material:1.2.1
  • Device brand: doesn't matter
  • Device model: doesn't matter
Step 3: Describe the problem:
Steps to reproduce:
  1. creating a menu via menu.xml
  2. use this menu in fab
  3. white icons in menu.xml are visible as black icons
  4. action button background is not configurable (always uses colorPrimary from theme)
Expected Results:
  • set color in layout.xml would be very useful

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting how the FAB uses menu.xml and the surrounding layout.xml attributes, then trace where the action button background and menu icon tint are selected. Done means a layout-configurable action button color is supported and white menu icons remain visible; verify the behavior on the reported Android and Material library versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.