Open bobans opened 9 years ago
Hmm, it might actually make more sense to deprecate the colorNormal
/colorPressed
attributes in favour of backgroundColor
attribute which accepts the color state list. Your comments/thoughts on this approach?
It sounds good. If it is not big requirement it would be nice to have possibility to set also drawable
as background.
:+1: for backgroundColor attribute. because i can use the ripple effect in L :)
@bobans I still haven't implement custom background support, but the fab_colorDisabled
was added in #100, available since version 1.6.0.
@DineshAnandan can you actually use ripple as color state list? I doubt it.
I would rather deprecate all custom attributes (colorNormal
, colorPressed
, colorDisabled
) and use android:background
instead which we can then paint as a circle using BitmapShader
. That would allow any kinds of background drawables. Hopefully I'll find the time to make pull request for it :) If not - you have my idea.
Can you add the option to set background drawable? It can be useful when you need to disable the button, with current state it just has 'colorNormal'.