【问题标题】:Display ImageView in android studio using path of images stored in server使用存储在服务器中的图像路径在 android studio 中显示 ImageView
【发布时间】:2018-10-27 00:08:24
【问题描述】:

我想通过使用存储在我的服务器“WAMP”中的路径图像在 android studio 中显示 ImageView,这个文件夹位于 (/WWW/Images) 中

【问题讨论】:

  • 浏览器可以访问您的图片吗?
  • 使用库 Picasso 或 Glide 或 Fresco.. 易于实现
  • Sam .. picasso library 我找到了如何从浏览器加载带有图像链接的图像 .. 我可以在我的情况下使用它吗??

标签: android phpmyadmin


【解决方案1】:

请尝试使用 Glide (https://github.com/bumptech/glide)

根据其文档:

    // For a simple view:
@Override public void onCreate(Bundle savedInstanceState) {
  ...
  ImageView imageView = (ImageView) findViewById(R.id.my_image_view);

  GlideApp.with(this).load("http://your_url").into(imageView);
}

【讨论】:

    猜你喜欢
    • 2017-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-10
    • 1970-01-01
    • 2017-01-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多