我试图在水平字段管理器中获得两个具有不同标签的进度条,但只显示一个。我可以更新它并改变进度,但看不到第二个。
// Internal Storage Label and Progress Bar
ProgressIndicatorView isView = new ProgressIndicatorView(0);
ProgressIndicatorController isController = new ProgressIndicatorController();
_isProgressBar = new ProgressIndicatorModel(0, 100, 0);
_isProgressBar.setController(isController);
isView.setModel(_isProgressBar);
isView.setController(isController);
isController.setModel(_isProgressBar);
isController.setView(isView);
isView.setLabel("Internal Storage");
isView.createProgressBar(Field.FIELD_HCENTER);
// SDCard Storage Label and Progress Bar
ProgressIndicatorView sdView = new ProgressIndicatorView(0);
ProgressIndicatorController sdController = new ProgressIndicatorController();
_sdProgressBar = new ProgressIndicatorModel(0, 100, 0);
_sdProgressBar.setController(sdController);
sdView.setModel(_sdProgressBar);
sdView.setController(sdController);
sdController.setModel(_sdProgressBar);
sdController.setView(sdView);
sdView.setLabel("SDCard Storage");
sdView.createProgressBar(Field.FIELD_HCENTER);
//Add everything to the view
//Add the manager to the screen.
add(horizontalFieldManager);
//Add the fields to the manager.
horizontalFieldManager.add(isView);
horizontalFieldManager.add(new SeparatorField());
horizontalFieldManager.add(sdView);