How to increase the space between the fields in VerticalFieldManager
I am adding three CustomButtons in开发者_如何学C verticalFieldManager, but there is no spacing between the buttons. all are coming one after the other.
use the method setPadding(int top, int right, int bottom, int left)
you can also do it by using Field.setMargin (int Top, int Right, int Bottom, int Left)
method. You may find articles on this forum debating if undocumented functions should be used or not but setMargin()
has even been used in RIM's own examples so I doubt there is any problem with using it.
精彩评论