FloatingActionButtonSpeedDial icon indicating copy to clipboard operation
FloatingActionButtonSpeedDial copied to clipboard

Main item and action item cannot display color images ?

Open cryinrain69 opened this issue 4 years ago • 4 comments

Step 1: Are you in the right place?

  • [x] I have verified there are no duplicate active or recent bugs, questions, or requests
  • [x] 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 avatar Jun 18 '21 09:06 cryinrain69

@leinardi Please help me.

cryinrain69 avatar Jun 21 '21 03:06 cryinrain69

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

leinardi avatar Jun 21 '21 10:06 leinardi

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.

cryinrain69 avatar Jun 21 '21 10:06 cryinrain69

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

leinardi avatar Jun 21 '21 10:06 leinardi