search

Home  >  Q&A  >  body text

ANDROID头像点击放大是存了两张图吗?

最近在做头像点击放大的功能,跟微信一样的,点击头像的图片显示铺满屏幕的大图.
如果直接把图拿到新的activity里显示的话,会非常模糊
想知道正常应该是放两张图还是 将钱一张图片做处理? 是做怎样的处理?
我在网上并没有找到合适的demo

用户在安卓端上传一张图片, 压缩一张, 两张一起传到服务器?
还是说 直接传到服务器 取的时候把大图压缩显示

PHP中文网PHP中文网2771 days ago562

reply all(6)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 17:26:28

    Two pictures solved

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:26:28

    Generally, the path of two pictures is obtained from the background, one is the thumbnail and the other is the original picture. When displaying the large picture, the path of the original picture is used

    reply
    0
  • 阿神

    阿神2017-04-17 17:26:28

    I think it’s better to just take the big picture? When using an avatar, reduce the size of the large image. Is the original image the large image?

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:26:28

    You can also use a picture. When displaying a small picture, you can dynamically obtain a low-resolution picture. When displaying a large picture, just display it directly.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:26:28

    It’s better to put two pictures and let the background provide two pictures.

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:26:28

    If you take a small picture and take the picture directly to a new activity, it will definitely be blurry. If it is a large picture, it will not be blurry. This is the case for a picture. You can also use two pictures.

    reply
    0
  • Cancelreply