Android 开源框架

https://github.com/Trinea/android-open-project

网络请求

xutils3

基于 Afinal,包含 DbUtils、ViewUtils、HttpUtils、BitmapUtils 四大模块,可用于快速开发

Volley

Google 提供的网络通信库,使得网络请求更简单、更快速

Asynchronous Http Client for Android

Android 异步 Http 请求

okhttp

square 开源的 http 工具类

下拉刷新

Android-PullToRefreshListView

支持ExpandableListView、GridView、WebView、ScrollView、HorizontalScrollView、ViewPager等view的上拉/下拉刷新

图片处理:

Picasso

加载图片、图片缓存

PullZoomView

图片下拉放大

  • github地址 : PullZoomView
  • 集成方法

    dependencies {
       compile 'com.github.frank-zhu:pullzoomview:1.0.0'
     }
  • 相关博客:

PhotoView

支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView

  • github地址 : PhotoView
  • 集成方法

    dependencies {
       compile 'com.commit451:PhotoView:1.2.5'
     }
  • 相关博客:

android-gif-drawable

加载Gif图片

CircleImageView

圆形图片

PhotoView

支持双指/双击缩放的ImageView,支持从一个PhotoView缩放到另外一个PhotoView(点击图片放大预览),相对于其他PhototView有更加平滑的缩放,平移的动画,并且支持所有的ScaleType,可以作为普通的ImageView使用

  • github地址 : PhotoView
  • 集成方法

    dependencies {
        compile 'com.bm.photoview:library:1.3.6'
    }
    

CanPhotos

使用fresco选取多张图片并可预览图片

  • github地址 : CanPhotos
  • 集成方法

    compile 'com.canyinghao:canphotos:1.0.1'
    

TextView:

可收缩、展开的TextView

ExpandableTextView

  • github地址 : ExpandableTextView
  • 集成方法

    dependencies {
        compile 'com.ms-square:expandableTextView:0.1.4'
    }
  • 相关博客:

TimeView

日历选择

DateTimePicker

  • github地址 : DateTimePicker
  • 集成方法

    compile 'com.github.flavienlaurent.datetimepicker:library:VERSION'
    

日期、地点选择(三级联动)

PickerView

  • github地址 : PickerView
  • 集成方法

    compile 'com.bigkoo:pickerview:2.0.8'
    

倒计时

CountdownView

  • github地址 : CountdownView
  • 集成方法

    compile 'com.github.iwgang:countdownview:1.2'
    

GraphView:

支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、网状图等

MPAndroidChart

  • github地址 : MPAndroidChart
  • 集成方法

    repositories {
        maven { url "https://jitpack.io" }
    }
    
    dependencies {
        compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
    }
    

其他

各种图形变换特效

AndroidLoadingAnimation

图案密码解锁

PatternLock

流式布局(能够让子View根据自身高度自动换行)

FlowLayout

  • github地址 : FlowLayout
  • 集成方法

    compile 'com.liangfeizc:flowlayout:1.0.0@aar'
  • 相关博客:

Media

YouTubePlayerActivity

传入url在新的Activity播放視頻

  • github地址 : YouTubePlayerActivity
  • 集成方法

    dependencies {
        compile 'com.thefinestartist:ytpa:1.2.1'
    }
    

工具库

AA框架注入

AndroidAnnotations

加载图片

Android-Universal-Image-Loader

图片缓存,目前使用最广泛的图片缓存,支持主流图片缓存的绝大多数特性

  • github地址 : https://github.com/nostra13/Android-Universal-Image-Loader

Glide

快速和高效的开源的多媒体资源管理库,提供 多媒体文件的压缩,内存和磁盘缓存, 资源池的接口

  • github地址 : Glide
  • 集成方法

    repositories {
      mavenCentral() // jcenter() works as well because it pulls from Maven Central
    }
    
    dependencies {
      compile 'com.github.bumptech.glide:glide:3.7.0'
      compile 'com.android.support:support-v4:19.1.0'
    }

数据库

greenDAO

orm的db工具类,简化建表、查询、更新、插入、事务、索引的操作


android-auto-scroll-view-pager

自动轮播的ViewPager

ViewPagerIndicator


emojicon

支持 emojis 的 TextView 和 EditText

  • github地址:emojicon
  • 集成方法

    compile 'com.rockerhieu.emojicon:library:<latest-version>'
    
  • 使用方法:
  • library/demo地址:
  • 相关博客:

ToggleButton

状态切换的 Button,类似 iOS,用 View 实现

android-stackblur

图片模糊效果工具类

cropper

图片局部剪切工具,可触摸控制选择区域或旋转

  • github地址:cropper
  • 集成方法

    repositories {
    mavenCentral()
    }
    
    dependencies {
      compile 'com.edmodo:cropper:1.0.1'
    }

uCrop

Yalantis 出品的强大的图片裁剪库 ,支持缩放,旋转图片,支持各种比例的裁剪框

  • github地址:uCrop
  • 集成方法

    compile 'com.yalantis:ucrop:1.3.+'

android-crop

图片裁剪 Activity 项目

  • github地址:android-crop
  • 集成方法

    //manifest中添加
    <activity android:name="com.soundcloud.android.crop.CropImageActivity" />
    
    //build.gradle中添加
    compile 'com.soundcloud.android:android-crop:1.0.1@aar'

DanmakuFlameMaster

android 上开源弹幕解析绘制引擎项目

  • github地址:DanmakuFlameMaster
  • 集成方法

    dependencies {
        compile 'com.github.ctiao:dfm:0.3.9'
    }

事件总线

EventBus

greenrobot 的开源项目

  • github地址:EventBus
  • 集成方法

    compile 'org.greenrobot:eventbus:3.0.0'

传感器

Pedometer

计步器,使用硬件计步感应器

Bluetooth LE Library for Android

蓝牙源信息,包括宝库 Mac、更新时间、RSSI、UUID、信号源距离、影响范围等信息

  • github地址:Bluetooth LE Library for Android
  • 集成方法

    repositories {
        maven {
            url "https://dl.bintray.com/alt236/maven"
        }
    }
    
        dependencies {
            compile 'uk.co.alt236:bluetooth-le-library-android:1.0.0'
        }

farebot

通过 NFC 从公交卡中读取数据的一个应用

安全

SQLCipher

Sqlite 加密工具

Conceal

快速高效的进行文件加密解密

文件处理

jsoup

一个解析 html 的 java 库,可方便的提取和操作数据

ZIP

java 压缩和解压库

  • github地址:ZIP

ZXing

二维码扫描工具

SpannableStringBuilder

图文混排

RecyclerViewSwipeDismiss

轻量级支持 support-v7 中的 RecyclerView 的滑动删除(Swipe to dismiss)行为,不需要修改源代码,只要简单的绑定onTouchListener

CanRefresh

可适配所有视图的下拉刷新上拉加载,并支持各种风格

  • github地址:CanRefresh
  • 集成方法

    compile 'com.canyinghao:canrefresh:1.0.0'

FadingActionBar

ListView 向下滚动逐渐显现的 ActionBar

CircularFloatingActionMenu

一个可定制的圆形的浮动菜单控件,类似于 Path 的圆形菜单。这个控件的可定制性更强,可以很容易的定制菜单出现消失时的动画,起始角度和半径。

SlideBottomPanel

底部划出菜单,滑动时背景图透明度渐变,支持嵌套 LiewView 或 ScrollView

GridView with Header and Footer

和ListView一样带头部和底部的GridView,用法和ListView一样

ProgressWheel

支持进度显示的圆形 ProgressBar

NumberProgressBar

带数字进度的进度条

circular-progress-button

带进度显示的 Button

Android Form EditText

验证输入合法性的编辑框,支持输入、英文、ip、url 等多种正则验证

SnappingStepper

一种漂亮的UI控件,能更灵活的控制数字的增减。可用于购物车商品数量控制

MaterialRangeBar

可以选择一个范围内的值而不是单个值的 SeekBar,RangeBar 的 Material Design 风格适配


猜你喜欢

转载自blog.csdn.net/qq_42022061/article/details/80811445