ANDROID头像点击放大是存了两张图吗?
PHP中文网
PHP中文网 2017-04-17 17:24:28
0
6
574

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

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

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(6)
Peter_Zhu

Two pictures solved

大家讲道理

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

阿神

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?

巴扎黑

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.

巴扎黑

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

黄舟

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template