使用:
compile ‘org.jsoup:jsoup:1.11.3’
7.依赖注入
7.1ButterKnife: 提供了一种能力——使用注解生成模板代码,将view与方法和参数绑定。帮助开发者省却了频繁findviewbyid的烦恼,最新的Butter Knife还提供了onclick绑定以及字符串的初始化。
github:https://github.com/JakeWharton/butterknife
作者:JakeWharton ,也是square团队成员之一
使用:
compile ‘com.jakewharton:butterknife:8.6.0’
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.6.0’
7.2Dagger2 : 一款通过依赖注入降低程序间耦合的开发框架,如今google团队接手的dagger2版本,强力开发团队保证了代码在 设计上的优越性
github :https://github.com/google/dagger
作者:google
使用:
dependencies {
compile ‘com.google.dagger?2.x’
annotationProcessor ‘com.google.dagger:dagger-compiler:2.x’
}
//If you’re using classes in dagger.android you’ll also want to include:
compile ‘com.google.dagger:dagger-android:2.x’
compile ‘com.google.dagger:dagger-android-support:2.x’
annotationProcessor ‘com.google.dagger:dagger-android-processor:2.x’
7.3AndroidAnotations : 可以加速Android的开发。它负责管道,让你专注于真正重要的事情。通过简化代码,它简化了代码的维护。
https://github.com/androidannotations/androidannotations
使用:
dependencies {
annotationProcessor “org.androidannotations:androidannotations:2.7”
compile “org.androidannotations:androidannotations-api:2.7”
}
8.图表
8.1WilliamChart: Android图表库,已支持的功能,折线图
,条形图,横向条形图,堆叠柱形图,横向堆叠柱形图
https://github.com/diogobernardino/WilliamChart
使用:
compile ‘com.diogobernardino:williamchart:2.2’
8.2HelloCharts: 一个用来生成统计图表的三方库,目前支持折线图、柱状图和饼状图等常见图表。支持缩放、滑动和动画效果。
https://github.com/lecho/hellocharts-android
使用:
compile ‘com.github.lecho:hellocharts-library:1.5.8@aar’
8.3MPAndroidChart