if(msg.what == 1 && bitmap != null){ image.setImageBitmap(bitmap); bar.setVisibility(View.GONE); } } }; private ImageView image; private ProgressBar bar; public void show() { create(); dialog.show(); } /** * * <code>create</code> * @description: TODO(创建一个bitmap 当本地有则去本地存储,否则去服务器上下载 * @since 2011-12-19 yourname */ private void create(){ if(imagePath !=null){ String path =haveDownld(imagePath); if(path == null){ new Thread(){ public void run(){ String localPath; try { // localPath = ImageFactory.getURLBitmap(imagePath,2); // function = new DBFunction(context); // function.addPhotoinfo(Configuration.return_customerId,imagePath,localPath);
Android点击本地缩略图 弹出显示服务器原图(2)
内容版权声明:除非注明,否则皆为本站原创文章。