简体   繁体   English

“mplaceholder”在android开发人员“处理UI线程中的位图”中引用了什么?

[英]What does “mplaceholder” refer to in android developer “Processing Bitmaps Off the UI Thread”?

I am working with bitmaps and trying to follow the guidliness provided in android developer site. 我正在使用位图并尝试遵循android开发者网站提供的guidliness。 I have followed all the steps in detail however i am stuck with a parameter passed in the following method. 我已经详细地遵循了所有步骤,但是我坚持使用以下方法传递的参数。

    public void loadBitmap(int resId, ImageView imageView) {
    if (cancelPotentialWork(resId, imageView)) {
        final BitmapWorkerTask task = new BitmapWorkerTask(imageView);
        final AsyncDrawable asyncDrawable =
                new AsyncDrawable(getResources(), **mPlaceHolderBitmap**, task);
        imageView.setImageDrawable(asyncDrawable);
        task.execute(resId);
    }
}

here is the link that i am following. 是我关注的链接。 And I am storing and retrieving images from sqlite database however that is not a problem. 我正在从sqlite数据库中存储和检索图像,但这不是问题。

@murli... @murli ...

It represents your own Bitmap to be used as a placeholder while the actual image is loaded. 它表示您自己的Bitmap在加载实际图像时用作占位符。 You can download the sample and see the entire code 您可以下载示例并查看整个代码

2) http://rathishblog.blogspot.in/2012/06/days-of-fragrance-memory-image.html 2) http://rathishblog.blogspot.in/2012/06/days-of-fragrance-memory-image.html

Let me know if you find any issue 如果您发现任何问题,请告诉我

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM