Android常用框架汇总

android开发常用的框架汇总,实时更新中

网络访问

Retrofit

Gradle:

latestVersion:2.1.0
compile 'com.squareup.retrofit2:retrofit:latestVersion'

CallAdapters:

RxJava - com.squareup.retrofit2:adapter-rxjava
Guava  - com.squareup.retrofit2:adapter-guava
Java 8 - com.squareup.retrofit2:adapter-java8

Converter:

Gson - com.squareup.retrofit2:converter-gson
Jackson - com.squareup.retrofit2:converter-jackson
Moshi - com.squareup.retrofit2:converter-moshi
Protobuf - com.squareup.retrofit2:converter-protobuf
Wire - com.squareup.retrofit2:converter-wire
Simple Framework - com.squareup.retrofit2:converter-simpleframework
Scalars - com.squareup.retrofit2:converter-scalars

Github:https://github.com/square/retrofit

OkHttp3

Gradle:

latestVersion:3.4.1

compile 'com.squareup.okhttp3:okhttp:latestVersion'

Github:https://github.com/square/okhttp

okhttp-utils

国内大神鸿洋封装的OkHttp3工具类

Gradle:

latestVersion:2.6.2
compile 'com.zhy:okhttputils:latestVersion'

Github:https://github.com/hongyangAndroid/okhttputils

android-async-http

Gradle:

latestVersion:1.4.9

repositories {
  mavenCentral()
}

dependencies {
  compile 'com.loopj.android:android-async-http:latestVersion'
}

Github:https://github.com/loopj/android-async-http

xUtils3

Gradle:

latestVersion:3.3.36
compile 'org.xutils:xutils:latestVersion'

Github:https://github.com/wyouflf/xUtils3

图片加载

Glide

Gradle:

latestVersion:3.7.0
repositories {
  mavenCentral() 
}

dependencies {
  compile 'com.github.bumptech.glide:glide:latestVersion'
  compile 'com.android.support:support-v4:XX.x.X'
}

Github:https://github.com/bumptech/glide

picasso

Gradle:

latestVersion:2.5.2
compile 'com.squareup.picasso:picasso:latestVersion'

Github:https://github.com/square/picasso

fresco

Gradle:

latestVersion:0.13.0
compile 'com.facebook.fresco:fresco:latestVersion'

Github:https://github.com/facebook/fresco

picasso

Gradle:

latestVersion:2.5.2
compile 'com.squareup.picasso:picasso:latestVersion'

Github:https://github.com/square/picasso

头像圆图

Gradle:

 compile 'de.hdodenhof:circleimageview:2.1.0'

Github:https://github.com/hdodenhof/CircleImageView

IconFont - Android-Iconics

现在有一个简单,快速,小巧的解决方案! – IconFont

Github:https://github.com/mikepenz/Android-Iconics

transformation库

一个基于Glide的transformation库,拥有裁剪,着色,模糊,滤镜等多种转换效果

Github:https://github.com/wasabeef/glide-transformations

PhotoView

PhotoView 是一款扩展自Android ImageView ,支持通过单点/多点触摸来进行图片缩放的智能控件。

Github:https://github.com/chrisbanes/PhotoView

注解

androidannotations

Gradle:

latestVersion:4.1.0 

根Gradle:

buildscript {
    repositories {
      mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:X.X.X'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:X.X'
    }
}

repositories {
    mavenCentral()
    mavenLocal()
}

appGradle:

apply plugin: 'com.android.application'
apply plugin: 'android-apt'
def AAVersion = 'latestVersion'

dependencies {
    apt "org.androidannotations:androidannotations:$AAVersion"
    compile "org.androidannotations:androidannotations-api:$AAVersion"
}

apt {
    arguments {
          androidManifestFile variant.outputs[0]?.processResources?.manifestFile
    }
}

Github:https://github.com/excilys/androidannotations

butterknife

Gradle:

latestVersion:8.4.0

根Gradle:

buildscript {
  repositories {
    mavenCentral()
   }
  dependencies {
    classpath 'com.neenbedankt.gradle.plugins:android-apt:X.X'
  }
}

appGradle:

apply plugin: 'android-apt'

android {
  ...
}

dependencies {
  compile 'com.jakewharton:butterknife:latestVersion'
  apt 'com.jakewharton:butterknife-compiler:latestVersion'
}

Github:https://github.com/JakeWharton/butterknife

RxJava

Gradle:

1.X
compile ‘io.reactivex:rxjava:1.2.0’
compile ‘io.reactivex.rxjava:rxandroid:1.2.1’

2.X
compile ‘io.reactivex.rxjava2:rxjava:2.0.0-RC2’
compile ‘io.reactivex.rxjava2:rxandroid:2.0.0-RC1’

Github:https://github.com/ReactiveX/RxJava

数据库

GreenDao

Gradle:

latestVersion:3.1.1

根Gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘org.greenrobot:greendao-gradle-plugin:3.1.1’
}
}

app.Gradle

apply plugin: 'org.greenrobot.greendao'

dependencies {
    compile 'org.greenrobot:greendao:3.1.1'
}

Github:https://github.com/greenrobot/greenDAO

广告栏控件

Gradle:
latestVersion:2.0.5

 compile 'com.bigkoo:convenientbanner:2.0.5'

Github:https://github.com/saiwu-bigkoo/Android-ConvenientBanner

RecyclerView

BaseRecyclerViewAdapterHelper

Gradle:
latestVersion:2.2.2

compile ‘com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.2’

Github:https://github.com/CymChad/BaseRecyclerViewAdapterHelper

文件下载

FileDownloader

支持断点下载、多任务下载
Gradle:
latestVersion:1.3.0

compile ‘com.liulishuo.filedownloader:library:1.3.0’

Github: com.liulishuo.filedownloader:library:1.3.0

图片选择

MultiImageSelector

Gradle Version:
latestVersion:1.2

 compile 'com.github.lovetuzitong:MultiImageSelector:1.2'

GitHub:https://github.com/lovetuzitong/MultiImageSelector

PictureSelector

Android多图选择器 图片/视频 单选or多选,以及视频录制。

Gradle Version:
latestVersion:1.2.7

 compile 'com.github.LuckSiege.PictureSelector:picture_library:v1.2.7' 

GitHub:https://github.com/LuckSiege/PictureSelector

BageView

GitHub:https://github.com/qstumn/BadgeView

Android常用框架汇总_第1张图片

Alerter

GitHub:https://github.com/Tapadoo/Alerter

Android常用框架汇总_第2张图片

SlideView

GitHub:https://github.com/Tapadoo/Alerter

Android常用框架汇总_第3张图片

Android常用框架汇总_第4张图片

Dachshund Tab Layout

GitHub:https://github.com/Andy671/Dachshund-Tab-Layout

Android-PickerView

GitHub:https://github.com/Bigkoo/Android-PickerView

PhotoView

GitHub:https://github.com/chrisbanes/PhotoView

PhotoView 是一款扩展自Android ImageView ,支持通过单点/多点触摸来进行图片缩放的智能控件。

特性:

  1. 支持单点/多点触摸,即时缩放图片;
  2. 支持平滑滚动;
  3. 在滑动父控件下能够运行良好;(例如:ViewPager)
  4. 当用户的触点改变是可以触发通知;

NumberProgressBar

GitHub:https://github.com/daimajia/NumberProgressBar

!这里写图片描述

Android常用框架汇总_第5张图片

MarqueeView

Github: https://github.com/sfsheng0322/MarqueeView

俗名:垂直跑马灯
学名:垂直翻页公告

vlayout

Github: https://github.com/alibaba/vlayout

Android常用框架汇总_第6张图片
!这里写图片描述

SimpleRatingBar

Github: [https://github.com/FlyingPumba/SimpleRatingBar]
(https://github.com/FlyingPumba/SimpleRatingBar)

DiscreteScrollView

Github: https://github.com/yarolegovich/DiscreteScrollView

ShortcutBadger

应用程序的桌面图标,显示未读消息数
Github: https://github.com/leolin310148/ShortcutBadger

Android 7.0桌面快捷键

Github: https://github.com/michelelacorte/AndroidAppShortcuts

图片压缩框架

Github: https://github.com/Sunzxyong/Tiny

倾斜的ImageView

Github: https://github.com/akshay2211/Oblique]

可拓展的指纹识别

现在已适配:三星、魅族
Github: https://github.com/uccmawei/FingerprintIdentify]

SwitchButton

Github: https://github.com/kyleduo/SwitchButton]

SwitchButton

Github: https://github.com/zcweng/SwitchButton]

Android常用框架汇总_第7张图片

ByeBurger

一个极其简便的快速实现隐藏标题栏和导航栏的库。
Github: ByeBurger]

Android常用框架汇总_第8张图片

Android常用框架汇总_第9张图片

ScalingLayout

Github: ScalingLayout

Demo

Fab Demo

Android常用框架汇总_第10张图片

Spotify Search Demo

这里写图片描述

时间选择器

Github: linear-time-picker

你可能感兴趣的:(Android框架)