Hi,
I am filling a panel background with two colorDrawables, the first with COLOR_EXT as the external border and the second with COLOR_IN inside the first
My approach to do this is
When COLOR_IN is opaque, this is the inner panel color.
Also if it has alpha, then it composes with COLOR_EXT.
But, is there any way to make COLOR_EXT disappear from the inner drawable when COLOR_IN has alpha? I know how to do it with normal DrawColor, but not with a ColorDrawable, and I would like to keep the round borders. Is it possible?
Thanks!
I am filling a panel background with two colorDrawables, the first with COLOR_EXT as the external border and the second with COLOR_IN inside the first
My approach to do this is
B4X:
Dim cv as canvas
cv.initialize(myPanel)
Dim cd as ColorDrawable
cd.initialize(COLOR_EXT,radius)
Dim Rect1 as Rect
Rect1.initialize(0,0,W,H)
cv.DrawDrawable(cd,Rect1)
Dim cd as ColorDrawable
cd.initialize(COLOR_IN,radius)
Dim Rect1 as Rect
Rect1.initialize(2,2,W-2,H-2)
cv.DrawDrawable(cd,Rect1)
When COLOR_IN is opaque, this is the inner panel color.
Also if it has alpha, then it composes with COLOR_EXT.
But, is there any way to make COLOR_EXT disappear from the inner drawable when COLOR_IN has alpha? I know how to do it with normal DrawColor, but not with a ColorDrawable, and I would like to keep the round borders. Is it possible?
Thanks!