【发布时间】:2017-07-13 23:03:04
【问题描述】:
我正在尝试实现一个弹出屏幕(基本上用于 EULA 屏幕),它有一个 Manager(垂直)、一个 RichTextField 和一个 Button。我希望 eula 文本显示在管理器中,并且只有管理器应该有滚动而不是弹出屏幕和在管理器之后添加的按钮。
问题:如果 RichTextField 中的文本很小,那么我可以看到文本和按钮。但如果文本很长,经理会滚动一点,根本看不到按钮。
这是我所做的:
class ApplicationEulaScreen extends PopupScreen implements FieldChangeListener
{
private VerticalFieldManager mainContainer;
private RichTextField eulaText;
private ButtonField okButton;
ApplicationEulaScreen()
{
super(new VerticalFieldManager(VerticalFieldManager.NO_VERTICAL_SCROLL);
mainContainer = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VERTICAL_SCROLLBAR | USE_ALL_HEIGHT);
eulaText = new RichTextField("Indicates whether network connectivity is possible. "
+"A network is unavailable when a persistent or semi-persistent condition prevents the possibility of connecting to that network. Examples include "
+"* The device is out of the coverage area for any network of this type. "
+"* The device is on a network other than the home network (i.e., roaming), and data roaming has been disabled. "
+"* The device's radio is turned off, e.g., because airplane mode is enabled. ", RichTextField.READONLY | RichTextField.USE_TEXT_WIDTH);
okButton = new ButtonField("Ok", ButtonField.FIELD_HCENTER | FOCUSABLE | ButtonField.CONSUME_CLICK);
okButton.setChangeListener(this);
mainContainer.add(eulaText);
add(okButton);
}
}
在这方面需要帮助。
【问题讨论】:
-
你能知道你在哪个模拟器或设备上测试吗?
-
这个问题几乎出现在所有模拟器中,因为我在 9700,9000,9550 上进行了测试。未在设备上测试
标签: blackberry popup