mohsen programmer Member May 29, 2024 #1 Hello How can I get the color with which I have already initialized a Get color from ColorDrawable?
Erel B4X founder Staff member Licensed User Longtime User May 30, 2024 #2 B4XView.Color returns the color. Upvote 0
mohsen programmer Member May 30, 2024 #3 Erel said: B4XView.Color returns the color. Click to expand... See, I create a ColorDrawable like this and send it to another activity to use it: B4X: Dim cd As ColorDrawable cd.Initialize2(Colors.White,10,2,Colors.Red) Now sometimes it is necessary to get the border color from this ColorDrawable. How can I do this? Upvote 0
Erel said: B4XView.Color returns the color. Click to expand... See, I create a ColorDrawable like this and send it to another activity to use it: B4X: Dim cd As ColorDrawable cd.Initialize2(Colors.White,10,2,Colors.Red) Now sometimes it is necessary to get the border color from this ColorDrawable. How can I do this?
mohsen programmer Member May 31, 2024 #4 I found the solution myself: B4X: Dim cd As ColorDrawable cd.Initialize(Colors.Red,5) Dim jo As JavaObject=cd Log(jo.GetField("borderColor")) Thanks to Erel Upvote 0
I found the solution myself: B4X: Dim cd As ColorDrawable cd.Initialize(Colors.Red,5) Dim jo As JavaObject=cd Log(jo.GetField("borderColor")) Thanks to Erel