Closed PappBalazs closed 8 years ago
Hi PappBalazs!
Thank you for using ActionButton libarary
The listed features are basic ones and work correctly (you may see how they work watching the demo video). During the last year these features were tested by many users and no issues were found. This is true as for XML, so for dynamic code
Please do the following:
Thank you for fast respond.
Xml: http://pastebin.com/8PCBBQWe Java: http://pastebin.com/FSGAnfUr
// To set button color for normal state:
actionButton.setButtonColor(getResources().getColor(R.color.fab_material_lime_500));
That is, you passes a resource id, but setButtonColor expects a resolved color int value
Thank you my friend, it is working now.
Hope i can help you too: update getResources.getColor in your documentation, beacause it is deprecated now, use fab.setButtonColor(ContextCompat.getColor(context, R.color.myBlue));
Great!
Sure, I shall perform refactoring and fix this in the last major release
Thank you and have a nice day
using it from code: fab.setButtonColor(R.color.myRed); or using it form xml: fab:button_color="@color/myRed" has no effect at all.
Also i could set image into fab only from code xml attribute didnt work