Custom RGB color in desinger

erfan

Member
Licensed User
Longtime User
when i want to change the color of a panel i do like this:
B4X:
Dim mypanel As Panel
mypanel.Color=Colors.RGB(74,160,125)
i have to do it in activity
is there a way to do it in designer? how can i enter my custom color in color properties?
 

rameshb

Member
Hi Erel,
If the number of views are more,it will be a tedious task to set each view's drawable and specify two colours for gradient.
If it is possible to save layout to xml and edit there and import back into existing designer will be a great time saving option.
Otherwise please consider giving option for setting RGB Values for color drawable.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Me too, I would like a color selection like for the GradientDrawable.
Another problem with the ColorDrawable color selection is:
- you select a color with a name.
- but afterwards it is displayed as RGB.
So when you want to set a same color for another view you don't know which one it is.
Not easy to know that RGB(255, 228, 196) is Bisque !

Best regards.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…