Hi to all!
I've a CustomView that is based on BCTextEngine and BBLabel. As i cannot understand how to add BBLabel programmatically (BBLabel has not a method like addToParent), i placed it in Layout.
I tried to load the layout in mbase of CustomView, but to achieve this in DesignerCreateView i need to place a sleep(0). This sleep(0) will make "slow" the loading of custom view (i noticed a few ms after loading activity is fully loaded to get the view layout ready). Is there a way to achieve this without use sleep(0)?
I thought i can use base_resize to load the layout, by using a boolean var to set it only first time, but i want to know if there is a better tip to do this.
Thanks to all
I've a CustomView that is based on BCTextEngine and BBLabel. As i cannot understand how to add BBLabel programmatically (BBLabel has not a method like addToParent), i placed it in Layout.
I tried to load the layout in mbase of CustomView, but to achieve this in DesignerCreateView i need to place a sleep(0). This sleep(0) will make "slow" the loading of custom view (i noticed a few ms after loading activity is fully loaded to get the view layout ready). Is there a way to achieve this without use sleep(0)?
I thought i can use base_resize to load the layout, by using a boolean var to set it only first time, but i want to know if there is a better tip to do this.
Thanks to all