当前位置: 首页 > news >正文

可以下载新闻视频的网站seo优化交流

可以下载新闻视频的网站,seo优化交流,广州市建设企业网站价格,中国招标网官方网站简单总结一下: 使用上没有任何区别,你把它当drawable用就好了。 但是用mipmap系统会在缩放上提供一定的性能优化。 官方介绍: Mipmapping for drawables Using a mipmap as the source for your bitmap or drawable is a simple way to provide a qualit…

简单总结一下:

使用上没有任何区别,你把它当drawable用就好了。

但是用mipmap系统会在缩放上提供一定的性能优化。

官方介绍:

Mipmapping for drawables

Using a mipmap as the source for your bitmap or drawable is a simple way to provide a quality image and various image scales, which can be particularly useful if you expect your image to be scaled during an animation.

Android 4.2 (API level 17) added support for mipmaps in the Bitmap class—Android swaps the mip images in your Bitmap when you've supplied a mipmap source and have enabled setHasMipMap(). Now in Android 4.3, you can enable mipmaps for a BitmapDrawable object as well, by providing a mipmap asset and setting the android:mipMap attribute in a bitmap resource file or by calling hasMipMap().

应用场景:

If you know that you are going to draw this bitmap at less than 50% of its original size, you may be able to obtain a higher quality by turning this property on. Note that if the renderer respects this hint it might have to allocate extra memory to hold the mipmap levels for this bitmap.

一个应用实例:

Nexus 6

Screen
The Nexus 6 boasts an impressive 5.96” Quad HD screen display at a resolution of 2560 x 1440 (493 ppi). This translates to ~ 730 x 410 dp (density independent pixels).

Check your assets
It has a quantized density of 560 dpi, which falls in between the xxhdpi and xxxhdpi primary density buckets. For the Nexus 6, the platform will scale down xxxhdpi assets, but if those aren’t available, then it will scale up xxhdpi assets.

Provide at least an xxxhdpi app icon because devices can display large app icons on the launcher. It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density. For example, an xxxhdpi app icon can be used on the launcher for an xxhdpi device.

res/mipmap-mdpi/ic_launcher.pngmipmap-hdpi/ic_launcher.pngmipmap-xhdpi/ic_launcher.png  mipmap-xxhdpi/ic_launcher.pngmipmap-xxxhdpi/   ic_launcher.png  # App icon used on Nexus 6 device launcher

Choosing to add xxxhdpi versions for the rest of your assets will provide a sharper visual experience on the Nexus 6, but does increase apk size, so you should make an appropriate decision for your app.

res/drawable-mdpi/ic_sunny.pngdrawable-hdpi/ic_sunny.pngdrawable-xhdpi/   ic_sunny.pngdrawable-xxhdpi/  # Fall back to these if xxxhdpi versions aren’t availableic_sunny.png drawable-xxxhdpi/ # Higher resolution assets for Nexus 6ic_sunny.png

总结

这个实例总结一下是这样:

Nexus 6 有 493 ppi,它刚好在 xxhdpi和xxxhdpi之间,所以显示的时候需要对xxxhdpi的资源进行缩小,如果你用了mipmap-xxxhdpi,那么这里会对sclae有一个优化,性能更好,占用内存更少。所以现在官方推荐使用mipmap:

It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density.

http://www.lbrq.cn/news/2517031.html

相关文章:

  • 网站中信息更新怎么做的自媒体平台收益排行榜
  • 合浦网站建设哪个推广网站好
  • 万全孔家庄做网站大连网站排名推广
  • 建设银行招聘网站甘肃分行百度小程序关键词优化
  • 建设部网站的诚信平台最近发生的重大新闻事件
  • 网站管理助手4.0教程今天中国新闻
  • 站长工具是什么创意营销点子
  • 想要找个网站做环评公示免费广告推广
  • 南宁哪家公司建设网站比较好网络推广与营销
  • 赣州做网站jx25色盲色弱测试
  • 延吉市住房城乡建设局网站网络服务公司
  • 网站建设及报价方案疫情二十条优化措施
  • 网站seo月报今日热搜榜排名最新
  • 衡阳市做网站百度知道客服电话人工服务
  • 网站多久跨境电商网站开发
  • 北京网站手机站建设公司电话号码开封网络推广哪家好
  • python 做下载网站百度关键词查询工具
  • 网络规划设计师考试内容上海关键词优化报价
  • 青岛网站建设搭建企业网站推广方案设计毕业设计
  • 做网站要注意什么如何优化网站排名
  • portfolio wordpressseo技术培训机构
  • 网站建设常用结构类型教育机构培训
  • 黄石做网站的公司中小企业网络营销现状
  • 中学生做网站友情手机站
  • 如何做双版网站seo关键词排名实用软件
  • 北京电商网站开发费用怎么做免费的网站推广
  • 微信免费做邀请函模版网站怎样制作一个网页
  • 重庆怎么自己做网站看广告收益的正规平台
  • 学网站开发的软件网络营销运营方案
  • 收到网站代码后怎么做重庆森林讲了什么故事
  • 【swoole Windows 开发(swoole-cli 开发 hyperf)】
  • 归雁思维:解锁自然规律与人类智慧的桥梁
  • 深入解析 Spring 获取 XML 验证模式的过程
  • 回归预测 | MATLAB实现BiTCN双向时间卷积神经网络多输入单输出回归预测
  • bash的特性-常用的通配符
  • 【C/C++】explicit_bzero