Display an image for zooming and panning UI.net
Code sample: Displaying an image for zooming and panning
import net.rim.device.api.system.*;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.extension.container.*;
public class ZoomableImageApp extends UiApplication
{
public static void main(String[] args)
{
ZoomableImageApp theApp = new ZoomableImageApp();
theApp.enterEventDispatcher();
}
public ZoomableImageApp()
{
EncodedImage myImg = new EncodedImage("myImg.jpg");
ZoomScreen zoomableImg = new ZoomScreen(myImg);
pushScreen(zoomableImg);
}
}
上一篇: Date/Time Formats
下一篇: 索爱手机IMSI序列号获取