Marcus Araujo Member Licensed User Longtime User Sep 17, 2018 #1 Hello, Is there a way to retrieve a ColorDrawable's color and stroke width/color? Thanks, Marcus
Semen Matusovskiy Well-Known Member Licensed User Sep 17, 2018 #2 IMO, no. At least, without serious efforts. ColorDrawable is simply a class, which uses GradientDrawable and holds all internally. Last edited: Sep 17, 2018 Upvote 0
IMO, no. At least, without serious efforts. ColorDrawable is simply a class, which uses GradientDrawable and holds all internally.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2018 #3 You can get the color with B4XView.Color: B4X: Dim x As B4XView = Button1 'XUI library Dim clr As Int = x.Color Upvote 0
You can get the color with B4XView.Color: B4X: Dim x As B4XView = Button1 'XUI library Dim clr As Int = x.Color