J'ai créé une application qui fonctionne correctement sur BlackBerry Bold mais lorsque je l'ai installée sur Torch, l'écran ne défile pas .. J'ai utilisé Manager avec le défilement vertical activé et l'ai ajouté à un autre champ vertical maître directeur? Quelqu'un at-il eu ce problème avant?Problème de défilement BlackBerry Torch
le code pour le gestionnaire est inférieur
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();
}
}
}
cela n'a pas fonctionné pour moi ... –