Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Tint and srcCompat #437

Open
Open

Description

@dovahkiin98

Tint doesn't apply to icon
and app:srcCompat isn't recognized

Activity

  1. Croutonix commented on Jun 18, 2018

    @Croutonix

    Yes, because FloatingActionButton extends android.widget.ImageButton and not the support library equivalent. The solution around this is to tint your own icons by code...

  2. kolagit commented on Dec 12, 2019

    @kolagit

    As stated, this library is not supported any longer.
    To make it compatible with AndroidX,
    All you need to do is :

    update ImageView to use "androidx.appcompat.widget.AppCompatImageView",
    update ImageButton to use "androidx.appcompat.widget.AppCompatImageButton"
    (You have to fix one of super class constructor as AppCompatImageButton constructor
    changed. getOpacity() method.)
    It fixed the AndroidX compatibility issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions