マネージャー(垂直)、1つのRichTextField、1つのボタンを持つポップアップ画面(基本的にEULA画面用)を実装しようとしています。私は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);
}
}
をこの上のヘルプが必要な場合:ここで
は、私がやったものです。
どのシミュレータまたはデバイスをテストするのですか? – Swati
9700,9000,9550でテストしたので、この問題はほぼすべてのシミュレータに取り込まれています。デバイス上でテストされていない – amsiddh