`
dengyin2000
  • 浏览: 1205895 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
http://blog.udinic.com/2015/09/15/speed-up-your-app 各种性能优化工具介绍 https://futurestud.io/blog/retrofit-2-upgrade-guide-from-1-9/  很像用来替换目前项目中接口调用这块。能够介绍不少垃圾代码 Optimizing Android bytecode with Redex (需要fanqiang)看起来又是一个facebook牛逼的工具 ReactiveX文档中文翻译 Andriod性能优化之列表卡顿——以“简书”APP为例 聊一聊Android 6.0的运行时权限 A ...
mirrors.dormforce.net:80 //(栋力无限)电子科技大学 ref: http://blog.kuoruan.com/24.html
移动客户端应用相对于Webapp的最大一个问题是做不到Online bug fix。如果全量发出去一个版本出现一个critical bug,紧急或者有安全漏洞的问题。这时你就会哭爹喊娘了。 如果是Webapp你可能最多花个1,2个小时紧急发布上线,但是app呢 ...
https://github.com/android-cn/interview-questions
发现用Android Studio的make和直接使用command line来编译项目,之间的速度相差太大。下面来说说我如何优化。 1. 在你的$HOME/.gradle/gradle.properties文件里面添加下面代码 引用org.gradle.daemon=true 2. 在你的${PROJECT.DIR}/gradle.properties文件添加下面代码 引用org.gradle.parallel=true project.android.dexOptions.preDexLibraries=false 3. 打开gradle compiler的并行编译 4. 建议你还 ...
使用gradlew来build项目时,有时候老是需要下载gradle-2.2.1-all.zip安装来安装。但是因为gradle-2.2.1-all.zip老是被墙下不了。这里说一种从本地安装的方法。 1. 先下载gradle-2.2.1-all.zip包。 2. 把下载好的zip包放到{project.dir}\gradle\wrapper目录下(也就是跟gradle-wrapper.properties同一个目录)修改{project.dir}\gradle\wrapper\gradle-wrapper.properties文件。如下: 引用#Wed Apr 10 15:27:10 PDT ...
1. HTTP Only Proxy configuration 引用gradlew -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 2. HTTPS Only Proxy configuration 引用gradlew -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=3129 3. Both HTTP and HTTPS Proxy configuration 引用gradlew -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 -Dhttps.pr ...
http://java67.blogspot.com/ 面试题可以从这里获取
增加largeHeap="true"属性。 android:largeHeap Whether your application's processes should be created with a large Dalvik heap. This applies to all processes created for the application. It only applies to the first application loaded into a process; if you're using a shared user ID to allow mult ...
我们在ListView的Adapter的getView方法里面经常会调用两个参数的inflate方法, mInflater.inflate(R.layout.adv_viewpager, null) 我们可能会发现layout外层的layout_width  layout_height属性都没起作用,全都变成wrap_content的值了。 这个问题就是因为我们使用了错误的参数照成的, 系统在inflate layout的时候 如果传入的root为空的话 就会忽略LayoutParams. 所以在getView里面应该调用 mInflater.inflate(R.layout.adv_v ...
使用下面的代码可以做到跟点击app应用图标一样的效果,(如果在后台 就带到前台, 如果没有就打开新的app) Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setClass(this, Main.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); 引用除了 setClass 可以换成使用 s ...
https://github.com/greenrobot/EventBus 引用Android optimized event bus that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
避免ListView滑动很快的时候加载很快就过掉的内容(比如图片),具体可以参考android-query的设计。https://code.google.com/p/android-query/wiki/ImageLoading 
在网上找了下   想看看有没有这样的组件。 发现有一个国内的家伙实现了, 动画效果做得还蛮酷的。 http://www.eoeandroid.com/forum.php?mod=viewthread&tid=187725&extra=page%3D1&page=1  这里下载: http://ishare.iask.sina.com.cn/f/35209241.html 不过看了下代码感觉还蛮复杂的, 后来就想自己搞搞, 思考一会后发现其实只要知道scrollbar的位置   然后再scrollbar上面浮一个view不就是了吗?  然后很自然的想到在listvi ...
先说两个网站: http://www.androidviews.net/ http://www.theultimateandroidlibrary.com/ 1. https://github.com/novoda/ImageLoader  异步加载图片,缓存,生成缩略图, 基本上每个应用都会需要这个lib。 2. https://github.com/chrisbanes/Android-PullToRefresh   类似新浪微博,twitter,下拉刷新列表, 更牛的是还支持上拉加载更多。 不仅仅是ListView,而且GridView也支持。 3. https://github ...
Global site tag (gtag.js) - Google Analytics