You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
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...
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.
Activity
Croutonix commentedon Jun 18, 2018
Yes, because
FloatingActionButtonextendsandroid.widget.ImageButtonand not the support library equivalent. The solution around this is to tint your own icons by code...kolagit commentedon Dec 12, 2019
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.