Android Question Get color from ColorDrawable

B4XView.Color returns the color.
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
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…