0
我想在屏幕上显示多个图像,如表格结构。例如,我们已经在图像查看器应用程序中看到了例如
。
我想显示图像所示的图像,当图像点击时它会全屏打开。
我怎样才能实现这种类型的UI.is有任何API或任何其他可以帮助我。以表格形式在屏幕上显示多个图像 - Blackberry
我想在屏幕上显示多个图像,如表格结构。例如,我们已经在图像查看器应用程序中看到了例如
。
我想显示图像所示的图像,当图像点击时它会全屏打开。
我怎样才能实现这种类型的UI.is有任何API或任何其他可以帮助我。以表格形式在屏幕上显示多个图像 - Blackberry
GridFieldManager grid;
grid = new GridFieldManager(2,2,0);
EncodedImage e1 = EncodedImage.getEncodedImageResource("image1.png");
EncodedImage e2 = EncodedImage.getEncodedImageResource("image2.png");
EncodedImage e3 = EncodedImage.getEncodedImageResource("image3.png");
EncodedImage e4 = EncodedImage.getEncodedImageResource("image4.png");
grid.add(new BitmapField(e1.getBitmap(),FOCUSABLE){
protected boolean navigationClick(int status, int time){
//your code
return true;
}
});
grid.add(new BitmapField(e2.getBitmap(),FOCUSABLE){
protected boolean navigationClick(int status, int time){
//your code
return true;
}
});
grid.add(new BitmapField(e3.getBitmap(),FOCUSABLE){
protected boolean navigationClick(int status, int time){
//your code
return true;
}
});
grid.add(new BitmapField(e4.getBitmap(),FOCUSABLE){
protected boolean navigationClick(int status, int time){
//your code
return true;
}
});
add(grid);
我如何添加单击事件给这个图片? – 2012-03-14 13:45:04
我更新了答案。 – Signare 2012-03-14 13:49:59