【问题标题】:How to set image placeholder like Instagram如何设置图片占位符,如 Instagram
【发布时间】:2015-12-01 04:30:36
【问题描述】:

我听说 Instagram 使用 Picasso 库来加载图像,我想知道是否有人可以指出我如何在我的应用程序中实现像 Instagram 一样的图像加载占位符,其中加载进度条,因为我也使用 Picasso 库。谢谢。

【问题讨论】:

    标签: java android image-processing instagram picasso


    【解决方案1】:

    您尝试过 Glide 吗?这很容易。

    Glide.with(this).load("url")
                         .placeholder(R.drawable.xxx)
                         .into(imageView);
    

    【讨论】:

    • 是的,我知道滑翔,它们几乎相同。我想要的是进度加载占位符,就像在 Instagram 中一样
    猜你喜欢
    • 1970-01-01
    • 2020-05-23
    • 2012-03-10
    • 2012-02-17
    • 1970-01-01
    • 2014-06-15
    • 2019-01-03
    • 2022-01-27
    • 1970-01-01
    相关资源
    最近更新 更多