A framework contains many utils and interface will make us very convenience when we make android development.
If you are building with Gradle, simply add the following line to the dependencies section of your build.gradle file :
compile 'com.charonchui.framework:framework:1.0.0'
<dependency>
<groupId>com.charonchui.framework</groupId>
<artifactId>framework</artifactId>
<version>1.0.0</version>
</dependency>-
volley

在Google I/0 2013中发布了Volley.Volley是Android平台上的网络通信库,能使网络通信更快,更简单,更健壮。 这是Volley名称的由来:a burst or emission of many things or a large amount at once.Volley特别适合数据量不大但是通信频繁的场景。
Github上面已经有大神做了镜像,使用更方便有木有。Volley On Github -
Gson
Json转换神器。 -
GsonFormat

既然用了Gson怎么能少了该神器呢? -
android-butterknife-zelezny

使用butterknife制作的Android Studio/IDEA插件。非常方便有木有。 -
android-selector-chapek
selector写起来是不是很麻烦?以后让UI规范化命名,然后就没有然后了。


接下来你就会在drawable目录发现对应的selector文件。 -
leakcanary

内存泄漏你怕不怕? -
fresco
怎么能少了对图片的处理呢?Fracebook出品。更快、更强、更方便。 -
android-resource-remover
开发过程中可能会经常遇到需求的变更,时间长了,项目中的无用资源就会越来越多。 虽然在Gradle中支持相应的配置来去除无用资源:buildTypes { debug { minifyEnabled false zipAlignEnabled false shrinkResources false } release { zipAlignEnabled true // remove unused resources shrinkResources true minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } }但是这只是在打包的时候不会打进去无用的资源,但是这些资源还是会在工程中。 那我们怎么能快速的移除掉这些无用资源呢?答案也很简单,就是使用
lint检查出无用的资源后用工具删除,这个工具就是android-resource-remover。 因为它是一个python脚本,所以如果不懂python的话使用起来会比较麻烦,下面就介绍一下具体的使用方法:- 下载并安装
Python 2.x版本 去Python下载后即可,这里要下载2.x版本,因为3.x版本对语法做了很多改动,可能会不兼容,下载完成后安装就可。安装完成后将安装路径加入到Path中。如D:\Python;。 - 安装
android-resource-remover
在命令行输入下面的命令pip install android-resource-remover。 这里有些电脑可能会提示错误,是因为没有安装pip导致的,具体可以看pip找到安装的方法。上面介绍了要下载get-pip.py后执行python get-pip.py就能安装了。 - 将
D:\Python\Scripts添加到Path中。 - 将
lint命令添加到Path中,D:\android-sdk-windows\tools. - 在
Studio右侧的Gradle窗口中执行lint任务。 这样就会在app/build/outputs下生成lint-results.xml文件。下一步清理的时候需要使用lint-results.xml文件。

- 进入到
Android Studio中的具体项目中执行./gradlew clean后再执行./gradlew lint && android-resource-remover --xml app/build/outputs/lint-results.xml
- 下载并安装
- Charon Chui - [email protected]
Copyright (C) 2013 Charon Chui <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.