一、mipmap 目录和drawable 目录有什么区别
Nexus 6 有 493 ppi,它刚好在 xxhdpi和xxxhdpi之间,所以显示的时候需要对xxxhdpi的资源进行缩小,如果你用了mipmap-xxxhdpi,那么这里会对sclae有一个优化,性能更好,占用内存更少。所以现在官方推荐使用mipmap:
二、setTranslucentStatus()方法
在Android4.4之后使用沉浸式状态栏,需要用到这个方法
blog: 关于Google+以及Facebook第三方登录实现的一点总结
g+官方教程: G+ start
facebook官方教程: Facebook start
要想编译编译google map必须使用Google map api。并在自己的工程中引入google-play-services_lib。两个都需要在SDK Manager中下载。前者要在对应android api中勾选,后者要勾选在Extras下的Google Play Service。
要注意的是map2.0要使用com.google.android.gms包名下的类
Google Maps Android API 使用OpenGL ES第2版来渲染地图。如果未安装OpenGL ES第2版,地图将不会出现。可以在 AndroidManifest.xml 中添加以下
<uses-feature |
一直想找些Android经典的开源项目学习一下,大健发现了这么一篇帖子,不少好东西,分享在此。希望能够对Android开发的同学有所帮助。感谢作者的整理和分享。tisa007
原帖在这里。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
$ hexo new "My New Post" |
More info: Writing
$ hexo server |