epiCode Active Member Licensed User Aug 29, 2021 #1 I have changed my labels to b4xview for compatibility with b4j and b4i, some of the code used label.background = colordrawable. However b4xview has only color attribute (which only changes background color). I need colordrawable since it also makes the label have rounded corners. How can I do that for B4XView (change bg color and rounded corners) programmatically ?
I have changed my labels to b4xview for compatibility with b4j and b4i, some of the code used label.background = colordrawable. However b4xview has only color attribute (which only changes background color). I need colordrawable since it also makes the label have rounded corners. How can I do that for B4XView (change bg color and rounded corners) programmatically ?
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2021 #2 1. You can always cast the B4XView to the specific type: B4X: B4XView1.As(Label). 'or Dim Label1 As Label = B4XView1 2. This is not needed in this case as you should use B4XView.SetColorAndBorder. Upvote 0
1. You can always cast the B4XView to the specific type: B4X: B4XView1.As(Label). 'or Dim Label1 As Label = B4XView1 2. This is not needed in this case as you should use B4XView.SetColorAndBorder.