Emme Developer Well-Known Member Licensed User Longtime User Sep 27, 2017 #1 Hi all! I'm using DSFloatingActionButton from @corwin42. Is possible to set a gradient color to it? I'm using this code, but doesn't work.. B4X: Dim cd As GradientDrawable cd.Initialize("TL_BR",Array As Int(Colors.Red,Colors.Black)) cd.CornerRadius = fabPlus.Width/2 fabPlus.Background = cd
Hi all! I'm using DSFloatingActionButton from @corwin42. Is possible to set a gradient color to it? I'm using this code, but doesn't work.. B4X: Dim cd As GradientDrawable cd.Initialize("TL_BR",Array As Int(Colors.Red,Colors.Black)) cd.CornerRadius = fabPlus.Width/2 fabPlus.Background = cd
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2017 #2 You don't need a library to create a floating button. You can use a regular button on an elevated panel: https://www.b4x.com/android/forum/threads/add-button.76946/#post-487638 Upvote 0
You don't need a library to create a floating button. You can use a regular button on an elevated panel: https://www.b4x.com/android/forum/threads/add-button.76946/#post-487638
Emme Developer Well-Known Member Licensed User Longtime User Sep 27, 2017 #3 Erel said: You don't need a library to create a floating button. You can use a regular button on an elevated panel: https://www.b4x.com/android/forum/threads/add-button.76946/#post-487638 Click to expand... I ask about this library because it has custom icon, with set icon drawable implement. But i think i can add it using image and csbuilder. Also, i think i need to implement ripple effect manually Upvote 0
Erel said: You don't need a library to create a floating button. You can use a regular button on an elevated panel: https://www.b4x.com/android/forum/threads/add-button.76946/#post-487638 Click to expand... I ask about this library because it has custom icon, with set icon drawable implement. But i think i can add it using image and csbuilder. Also, i think i need to implement ripple effect manually
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2017 #4 Emme Developer said: i think i need to implement ripple effect manually Click to expand... You don't need to, unless you replace the default drawable. Upvote 0
Emme Developer said: i think i need to implement ripple effect manually Click to expand... You don't need to, unless you replace the default drawable.
Emme Developer Well-Known Member Licensed User Longtime User Sep 28, 2017 #5 Erel said: You don't need to, unless you replace the default drawable. Click to expand... I replaced it because i use a gradient drawable Upvote 0
Erel said: You don't need to, unless you replace the default drawable. Click to expand... I replaced it because i use a gradient drawable