Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main item and action item cannot display color images ? #174

Open
2 tasks done
cryinrain69 opened this issue Jun 18, 2021 · 4 comments
Open
2 tasks done

Main item and action item cannot display color images ? #174

cryinrain69 opened this issue Jun 18, 2021 · 4 comments

Comments

@cryinrain69
Copy link

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

@cryinrain69
Copy link
Author

@leinardi Please help me.

@leinardi
Copy link
Owner

Hi @cryinrain69, I'm sorry but transparent background for fabs is not supported and the icon must be tintable (as in monocromatic).

@cryinrain69
Copy link
Author

Hi @cryinrain69, I'm sorry but transparent background for fabs is not supported and the icon must be tintable (as in monocromatic).

Hopefully it will be supported in the next version, otherwise it's a pity for a good lib.
Thank you.

@leinardi
Copy link
Owner

I currently do not have plans to implement this feature myself but Pull Requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants