BlackBerry - 屏幕中 LabelField 的水平对齐
我想添加一个新的 LabelField(String label, long style) 但如果我使用 Field.FIELD_HCENTER 作为我的样式,那么我会得到以下对齐方式。
|---- This text is horizontally aligned but in ----|
|---- a block.
但我想要的是;
|---- This text is horizontally aligned and ----|
|------- independently so for each line --------|
这个实现起来简单吗?我找不到场常数来让它为我工作。
预先感谢,
加夫
I want to add a new LabelField(String label, long style) but if I use Field.FIELD_HCENTER as my style then I get the following alignment.
|---- This text is horizontally aligned but in ----|
|---- a block.
But what I want is;
|---- This text is horizontally aligned and ----|
|------- independently so for each line --------|
Is this simple to achieve? I can't find the field constant to get this to work for me.
Thanks in advance,
Gav
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试 DrawStyle.HCENTER< /a>
替代文本 http://img521.imageshack.us/img521/6245/9000。 jpg
Try DrawStyle.HCENTER
alt text http://img521.imageshack.us/img521/6245/9000.jpg