Reputation: 35
I am building a blackberry app for BB Curve.I have a verticalfieldmanager where i am adding a Button,i set its extent as 320*22.I have a horizontalfieldmanager where i am adding two editfield and its extent is 296*22.Finally i am adding both these manager into another verticalfieldmanager whose extent i have set as 320*240.i use setBackgroundBitmap(Background bg) to set the background image.But when i set the extent of the main verticalfieldmanager,only the background image is set,but the other two managers where i have added editfield and button are not visible.But when i dont set the extent of the main vertical manager,than the editfield and button are added to the screen,but the background image is not added.So where i am doing wrong?
Upvotes: 0
Views: 156
Reputation: 10964
It looks like you're going to have to play with your extents to make sure that you given the child Managers enough space to layout the Fields. In your sublayout(int width, int height)
of the Managers, check what dimensions are getting passed to it. If they are less than the space it needs to layout, it won't be able to display its Fields.
Upvotes: 1