0

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

Bottom Bar

Thanks

iAmitWagh
  • 453
  • 2
  • 13

2 Answers2

2

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.

rfsk2010
  • 8,571
  • 4
  • 32
  • 46
0

you can use the PillButtonSet component, you can find it in the advanced UI package. see here: Advanced UI

Abed Hawa
  • 1,372
  • 7
  • 18