android周报169期

jopen 8年前

原文  http://www.jcodecraeer.com/a/androidweekly/2015/0929/3535.html


本期周报发布于 2015 年9月6日  

源地址: http://androidweekly.net/issues/issue-169

文章与教程

我在 Droidcon NYC 上学到的那些事儿 (medium.com)

Nick Santos写了他在Droidcon NYC上所学东西的概要。Droidcon NYC是一个安卓开发者大会(非谷歌举办)。

面相安卓开发者的Effective Java : Item 2  (fragmentedpodcast.com)

在第三部分中,小组将介绍Effective Java的第二条:在遇到很多构造参数时,考虑使用builder。

提高在Google Play曝光率的要与不要 (android-developers.blogspot.com)

本周,谷歌分享了来自Christian Calderon的关于如何优化在Play Store 排名的一些建议,Christian Calderon在美国游戏开发商Dots工作。

Unleash functional power on Android: Kotlin lambdas  (antonioleiva.com)

Antonio Leiva 谈了谈Kotlin中的函数式编程。

为什么运行时权限没必要吓到你 (plus.google.com)

Updating your app isn’t as daunting as you might think, though. You simply need add a few lines of code that build in checks and graceful failures. So here’s a handy guide to walk you through it.

升级你的app并非想象的那么恐怖。(后面的build in checks, graceful failures在这里不知咋翻译。。)

One-line custom fonts in XML with data binding  (plus.google.com)

Lisa Wray 对新的 data binding库的强大感到惊讶,并演示了如何使用它来设置字体。

Android Developer Options  (speakerdeck.com)

对安卓开发者选项的简要浏览,帮助你在app中debug。

Chrome custom tabs  (android-developers.blogspot.com)

最新版本Chrome 的一个新特性:custom tabs。可以让app自定义Chrome 的外观,让app过渡到web页面更快更自然。

如何升级到 RxAndroid 1.0  (blog.danlew.net)

最近有人问Dan Lew:”RxAndroid到底发生了什么?”。这里是它的简短回答。

Google Proximity Beacons - Part 1  (newcircle.com)

这篇文章中Dave Smith 探索了如何设置Beacon API以及使用它的好处。

Percent – Part 2  (blog.stylingandroid.com)

Mark Allison继续这个系列对Percent layout的介绍,探索如何实现与一些潜在的陷阱。

设计

创建高质量Material Design图标指南  (medium.com)

MaterialUp在创立之初,其创始人就发现了并关注了Michael Cook的作品,Michael Cook是一个富有才华的图标设计师。这篇文章是对Michael Cook的采访。

跨平台UI适配的方法:个案研究 ( www.smashingmagazine.com )

跨平台UI适配有三个方面:品牌的一致性;遵循平台的风格;寻求这两者之间的平衡。本文将分析者三方面。

代码

Frenchtoast  (github.com)

它通过复制Android Toasts 来实现并提供了相应的通道来控制。

Backboard  (github.com)

基于rebound 的动画库。

Android-historian  (github.com)

这个app设计来演示Android Support库中的各种控件,尤其是演示如何用这些控件实现Material design。

Sticky-headers-recyclerview  (github.com)

轻松为RecyclerViews创建section header。

Tabby  (github.com)

Tabby 是一个简单的例子程序,演示 support library中新的Chrome Custom Tabs的特性。

新闻

PSA: material design 规范最近更新了 (plus.google.com)

Roman Nurik分享了对Material Design规范的更新。

工具

Vectalign  (github.com)VectAlign (a.k.a. VectorDrawableAlign)

我们知道4.4以后AnimatedVectorDrawable可以让两个SVG图像无缝过渡(称为变形动画),但是这两个svg图像的 path必须参数个数要相等,同时这些参数的类型要匹配(也就是说格式要对齐),如果不对齐会产生异常。这个工具就是通过命令行的方式将任意两个svg资源转换成对齐的模式,而不会改变原始图像的外观。

Inspector  (github.com)

Gradle build inspector理清Gradle build内部发生的事情。构建的时候在文件系统中显示变化。

视频

低功耗蓝牙(Bluetooth Low Energy)  (www.油Tube.com)

这个视频中,Mathijs Lagerberg深入了安卓中的低功耗蓝牙(Bluetooth Low Energy ),解释了其技术原理并使用示例代码阐述如何在你的app中添加蓝牙功能。

Droidcon NYC 2015  (www.油Tube.com) 

Droidcon NYC 2015 的第一套视频,更多的视频将很快发布。

Android Dialogs: Philippe Breault  (www.油Tube.com)

Droidcon NYC的前一天,Huyen联系了Philippe Breault(GDE and Droidcon Montreal co-organizer),讨论触摸系统,Droidcon以及Android Studio的一些事情。

事件

Developing for 64-bit Android on ARM  (malideveloper.arm.com)

ARM系统的工程师与软件团队以及ARM合作伙伴的培训师发布了关于如何利用支持64位ARM平台的art模式加速你的app。他们将涵盖64-bit ARMv8-A架构与指令集,开发者环境的细节。并给出投放原生代码到64位系统的关键建议。