android8.0应用图标适配调整_Android-8.0系统中应用图标的适配

从Eclipse或者还是习惯以前把ic_luncher.png放到drawable下面, 还是让美工,你调整不同比例的图标吧,不太适配.....到现在应该可以暂时摒弃一下这些做法了。AS为我们提供了更方便的制作icon的方式,妈妈再也不用担心图标适配了了.....

这里我就是以相对简单的制作方式来说明下。至于图标适配的文章网上肯定很多,有些可能比较复杂,需要利用美术提供的前景背景来搞。不过大部分我觉得还是比较简单的。。

另外提到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 h

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值