Reputation: 453
I am new in BB development,
Please suggest me how i can adjust BitmapFields Width which are in HorizontalFieldManager to adjust it in Device width.
I am overriding Sublayout method to get this
Now it look like this....I am getting expected o/p for Simulator 9550
Thanks
Upvotes: 0
Views: 227
Reputation: 1362
you can use the PillButtonSet
component, you can find it in the advanced UI package.
see here: Advanced UI
Upvotes: 0
Reputation: 8611
Create a customBitmapField class which extends BitmapField. Override getPreferredWidth() method and return (Display.getWidth()/3) so the bitmapfield takes up a third of the device display. you will have to handle how it looks in smaller devices as well as the text might not fit.
Upvotes: 2