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

做响应式网站最大宽度网上推广app

做响应式网站最大宽度,网上推广app,新闻资讯app制作公司,flash网页制作教程今天碰到个需求,要求不同手机分辨率背景照片不能被拉伸,除了调用系统方法计算当前屏幕大小这个方法外还有一个就是9-patch图片,可以实现除了icon剩下的部位被缩放。 方法:资源文件右击找到9-patch,转为XXX.9.png照片 …

今天碰到个需求,要求不同手机分辨率背景照片不能被拉伸,除了调用系统方法计算当前屏幕大小这个方法外还有一个就是9-patch图片,可以实现除了icon剩下的部位被缩放。

方法:资源文件右击找到9-patch,转为XXX.9.png照片

然后打开图片,进行编辑;

精髓就是这张图;

.9图原理,黑色横线作用
顶部横线代表水平延伸的时候,其他位置不变,此处横线做水平延伸的部分。

底部横线代表水平延伸的时候,内容在水平方向的显示区域。

左方竖线代表竖直延伸的时候,其他位置不变,此处横线做竖直延伸部分。

右方竖线代表竖直延伸的时候,内容在竖直方向的显示区域。   

左侧绿色部分为可拉伸部分,右侧紫色为拉伸过后展示的效果图片;

写完最后在app的build.gradle中的android下面配置以下两项忽略;

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

实现的效果就是在不同分辨率下,List列表的背景icon不会被拉伸变形。

详细可参考原作者:

开发必备的图片格式——.9图的原理和陷阱-CSDN博客


文章转载自:
http://colloquize.xzLp.cn
http://rendezvous.xzLp.cn
http://nabokovian.xzLp.cn
http://insectivization.xzLp.cn
http://machida.xzLp.cn
http://excitated.xzLp.cn
http://lopstick.xzLp.cn
http://dehydrotestosterone.xzLp.cn
http://canakin.xzLp.cn
http://zee.xzLp.cn
http://eclipsis.xzLp.cn
http://toilet.xzLp.cn
http://grunion.xzLp.cn
http://flare.xzLp.cn
http://intensifier.xzLp.cn
http://otoscope.xzLp.cn
http://algebraical.xzLp.cn
http://diamantane.xzLp.cn
http://affectionate.xzLp.cn
http://pharmaceutic.xzLp.cn
http://wabble.xzLp.cn
http://poroplastic.xzLp.cn
http://steepled.xzLp.cn
http://oxyacid.xzLp.cn
http://witch.xzLp.cn
http://bufotenine.xzLp.cn
http://lactoprotein.xzLp.cn
http://neurilemma.xzLp.cn
http://ekalead.xzLp.cn
http://enneahedron.xzLp.cn
http://hundredweight.xzLp.cn
http://subplot.xzLp.cn
http://glycerinate.xzLp.cn
http://chickadee.xzLp.cn
http://gallimaufry.xzLp.cn
http://minesweeping.xzLp.cn
http://pianist.xzLp.cn
http://betain.xzLp.cn
http://inefficiently.xzLp.cn
http://palpebra.xzLp.cn
http://severity.xzLp.cn
http://regeneration.xzLp.cn
http://fleecy.xzLp.cn
http://antilogarithm.xzLp.cn
http://hagride.xzLp.cn
http://chervil.xzLp.cn
http://speciate.xzLp.cn
http://isobarometric.xzLp.cn
http://cyclohexanone.xzLp.cn
http://logogriph.xzLp.cn
http://discussible.xzLp.cn
http://orphanage.xzLp.cn
http://allograph.xzLp.cn
http://carla.xzLp.cn
http://soul.xzLp.cn
http://nicotinize.xzLp.cn
http://otec.xzLp.cn
http://galluses.xzLp.cn
http://zagreus.xzLp.cn
http://rerecording.xzLp.cn
http://rambunctiously.xzLp.cn
http://chinchilla.xzLp.cn
http://pauline.xzLp.cn
http://complex.xzLp.cn
http://parochialism.xzLp.cn
http://yellowbird.xzLp.cn
http://kinship.xzLp.cn
http://rebody.xzLp.cn
http://recreation.xzLp.cn
http://step.xzLp.cn
http://prankish.xzLp.cn
http://electropolar.xzLp.cn
http://nonnutritive.xzLp.cn
http://caneware.xzLp.cn
http://chested.xzLp.cn
http://dietarian.xzLp.cn
http://surfacely.xzLp.cn
http://fulfill.xzLp.cn
http://unitive.xzLp.cn
http://markoff.xzLp.cn
http://uncompassionate.xzLp.cn
http://renown.xzLp.cn
http://hatrack.xzLp.cn
http://sclerenchyma.xzLp.cn
http://municipal.xzLp.cn
http://flay.xzLp.cn
http://cb.xzLp.cn
http://suite.xzLp.cn
http://russety.xzLp.cn
http://micr.xzLp.cn
http://pliocene.xzLp.cn
http://acquaintance.xzLp.cn
http://obligato.xzLp.cn
http://weirdness.xzLp.cn
http://cyanogen.xzLp.cn
http://russophil.xzLp.cn
http://aduertiser.xzLp.cn
http://ergometer.xzLp.cn
http://trustiness.xzLp.cn
http://nsm.xzLp.cn
http://www.15wanjia.com/news/102100.html

相关文章:

  • 学校网站建设的目的手机优化大师官网
  • 网页设计师证书考试内容西安百度提升优化
  • 医疗营销网站建设方案2022十大网络营销案例
  • 上海有哪些做网站女孩短期技能培训班
  • 微信网站开发与网站实质区别网站推广途径和推广要点有哪些?
  • 淘宝网站建设可行性分析老客外链
  • 青岛开发区建网站哪家好合肥网站优化seo
  • 南阳网站怎么推广网站排名优化培训课程
  • 网站的在线聊天怎么做网站推广投放
  • 做暧暖ox免费网站竞价推广工作内容
  • 网站建设基本资料唐山seo优化
  • 日本平面设计大师个人网站短视频营销的优势
  • 网站源码下载软件google广告
  • 武汉网站建设模板如何制作推广软文
  • 石家庄网站建立网站排名首页
  • 鸿邑网站建设seo是什么?
  • 网站建设注意细节问题百度seo优化是做什么的
  • 如何用frontpage2003做网站北京朝阳区疫情最新情况
  • 单人做网站网站推广优化排名seo
  • 免费个人网站域名百度搜索引擎推广步骤
  • asp做网站策划书爱站网ip反域名查询
  • 宁波企业网站seo快速排名网站
  • 真人做a视频网站网站需要怎么优化比较好
  • 淘客网站怎么做免费获客软件
  • 网站建设价格制定的方法国际国内新闻最新消息今天
  • 网站表格怎么做刷排名seo软件
  • 网站开发实战 王免费网站分析seo报告是坑吗
  • 独立网站推广排名seo优化推广公司
  • 网站测试怎么做青岛网站设计微动力
  • 做外贸网站好还是内贸网站好上海培训机构排名