1
BlackBerryのボールドでうまく動作するアプリを作成しましたが、Torchにインストールしたときに画面がスクロールしていません。 有効な垂直スクロールでマネージャを使用し、別のマスター垂直フィールドマネージャー? 誰かがこの問題を以前に受け取りましたか?BlackBerry Torchスクロールの問題
マネージャのためのコードは、縦方向にスクロール可能ではないマスター・マネージャーにごTableManagerを追加しようと
public class TableManager extends Manager {
public int HEIGHT = 0;
public TableManager(int height) {
super(Manager.USE_ALL_WIDTH|Manager.VERTICAL_SCROLL);
HEIGHT = height;
}
public int getPreferredWidth() {
return Constants.width * 90/100;
}
public int getPreferredHeight() {
return HEIGHT;
}
protected void sublayout(int maxWidth, int maxHeight) {
int y = 150;
try{
int count = getFieldCount();
for (int i = 0; i < count; i++) {
Field field = getField(i);
layoutChild(field, field.getPreferredWidth(), field
.getPreferredHeight());
setPositionChild(field, (Constants.width - field
.getPreferredWidth()) >> 1, y);
y += field.getPreferredHeight();
}
setExtent(maxWidth, HEIGHT);
}catch(Exception e){
e.printStackTrace();
}
}
}
それは私のために働かなかった... –