leinardi / leinardi/FloatingActionButtonSpeedDial

Main item and action item cannot display color images ?

Open
#174 4 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

Step 1: Are you in the right place?
  • I have verified there are no duplicate active or recent bugs, questions, or requests
  • I have verified that I am using the latest version of the library.
Step 2: Describe your environment
  • Library version: 3.2.0
  • Android version: 10
  • Support library version:
  • Device brand: Samsung
  • Device model: S8+
Step 3: Describe the problem:

I use multicolor image in both main item and action item but it doesn't display, only shows 1 color and has background color around.
How can I show only the correct image?

Code:

<com.leinardi.android.speeddial.SpeedDialView
        android:id="@+id/speedDial"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_alignParentBottom="true"
        app:sdExpansionMode="top"
        app:sdMainFabAnimationRotateAngle="0"
        app:sdMainFabClosedBackgroundColor="@color/transparent"
        app:sdMainFabClosedSrc="@drawable/img_service"
        app:sdMainFabOpenedBackgroundColor="@color/transparent"
        app:sdMainFabOpenedSrc="@drawable/img_service" />

image 1
image 2

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

Reproduce the issue with library version 3.2.0 on Android using the shown SpeedDialView configuration and the multicolor drawable. Inspect how sdMainFabClosedSrc, sdMainFabOpenedSrc, and action-item images are rendered; the work is done when the images display all colors without an unwanted background.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.