您的位置:首页 > 移动开发 > Android开发

Android开源库

2015-01-27 00:00 106 查看
摘要: 总结一些常用的android开源库,方便以后在开发中用到来查询。

1、Image downloading and caching

1.1、picasso

A powerful image downloading and caching library for Android
https://github.com/square/picasso

1.2、Glide

Glide 是一个 Android 上的图片加载和缓存库,其目的是实现平滑的图片列表滚动效果

https://github.com/bumptech/glide

http://www.oschina.net/p/glide

// For a simple view:
@Override
public void onCreate(Bundle savedInstanceState) {
...

ImageView imageView = (ImageView) findViewById(R.id.my_image_view);

Glide.with(this).load("http://goo.gl/h8qOq7").into(imageView);
}

// For a list:
@Override
public View getView(int position, View recycled, ViewGroup container) {
final ImageView myImageView;
if (recycled == null) {
myImageView = (ImageView) inflater.inflate(R.layout.my_image_view,
container, false);
} else {
myImageView = (ImageView) recycled;
}

String url = myUrls.get(position);

Glide.with(myFragment)
.load(url)
.centerCrop()
.placeholder(R.drawable.loading_spinner)
.crossFade()
.into(myImageView);

return myImageView;
}


1.3、Android-Universal-Image-Loader

Android library #1 on GitHub. UIL aims to provide a powerful, flexible and highly customizable instrument for image loading, caching and displaying. It provides a lot of configuration options and good control over the image loading and caching process.
https://github.com/nostra13/Android-Universal-Image-Loader

1.4、Fresco

Fresco is a powerful system for displaying images in Android applications.
Fresco takes care of image loading and display, so you don't have to. It will load images from the network, local storage, or local resources, and display a placeholder until the image has arrived. It has two levels of cache; one in memory and another in internal storage.
In Android 4.x and lower, Fresco puts images in a special region of Android memory. This lets your application run faster - and suffer the dreaded OutOfMemoryError much less often.
Fresco also supports:
streaming of progressive JPEGs
display of animated GIFs and WebPs
extensive customization of image loading and display and much more!
Find out more at our website.
https://github.com/facebook/fresco

1.5、Picasso

A powerful image downloading and caching library for Android
https://github.com/square/picasso

1.6、ion(UrlImageViewHelper)

Android Asynchronous Networking and Image Loading

https://github.com/koush/ion

1.7、ImageFetcher

Downloads Images and attaches them to ImageViews.
Disk & in-memory caching.
Efficient image decoding.
inBitmap support.
Cross-fade support.
http://droidparts.org/image_fetcher.html

1.8、Volley : ImageLoader

https://android.googlesource.com/platform/frameworks/volley/

1.9、AndroidQuery : ImageLoading

https://code.google.com/p/android-query/wiki/ImageLoading
https://github.com/androidquery/androidquery

2、Internet

2.1、okhttp

An HTTP+SPDY client for Android and Java applications
https://github.com/square/okhttp

2.2、android-async-http

An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries.

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

3、ORM & IOC

3.1、KJFrameForAndroid

KJFrameForAndroid 又叫KJLibrary,是一个android的orm 和 ioc 框架。同时封装了android中的Bitmap与Http操作的框架,使其更加简单易用;KJFrameForAndroid的设计思想是通过封装 Android原生SDK中复杂的复杂操作而达到简化Android应用级开发,最终实现快速而又安全的开发APP。
http://git.oschina.net/kymjs/KJFrameForAndroid

3.2、xUtils

xUtils 包含了很多实用的android工具。
xUtils 最初源于Afinal框架,进行了大量重构,使得xUtils支持大文件上传,更全面的http请求协议支持(10种谓词),拥有更加灵活的ORM,更多的事件注解支持且不受混淆影响...
xUitls最低兼容android 2.2 (api level 8)
https://github.com/wyouflf/xUtils

3.3、OpenDroid

opendroid, android上的一个开源orm框架,可以轻松实现将数据库中的数据映射到java bean中、将java bean持久化到sqlite中。
opendroid也提供了强大的数据库升级方案,只需修改一个参数即可实现数据库升级,opendroid会自动将旧数据更新到新表中,免除数据库升级数据丢失的烦恼。
http://git.oschina.net/qibin/OpenDroid

4、UI

4.1、FloatingActionButton

悬浮按钮(一般在右下角位置) Android floating action button which reacts on scrolling events. Becomes visible when an attached target is scrolled up and invisible when scrolled down.
https://github.com/makovkastar/FloatingActionButton

4.2、Android-ObservableScrollView

Android library to observe scroll events on scrollable views.
It's easy to interact with the Toolbar introduced in Android 5.0 Lollipop and may be helpful to implement look and feel of Material Design apps.
在滚动的视图观测滚动事件的Android库
它易于与在Android 5.0 Lollipop中引入的工具条Toolbar相交互,并能够帮助实现Material Design apps的外观。
https://github.com/ksoichiro/Android-ObservableScrollView

5、开源工具

5.1、ButterKnife

Field and method binding for Android views。通过注解的方式实现View以及事件绑定
https://github.com/JakeWharton/butterknife
Android ButterKnife Zelezny 插件可以有效的提高生产效率(Android Property Initializer)
https://github.com/avast/android-butterknife-zelezny

5.2、Parceler

Parceler is a code generation library that generates the Android Parcelable boilerplate source code. No longer do you have to implement the Parcelable interface, the writeToParcel() or createFromParcel() or the public static final CREATOR. You simply annotate a POJO with @Parcel and Parceler does the rest. Because Parceler uses the Java JSR-269 Annotation Processor, there is no need to run a tool manually to generate the Parcelable code. Just annotate your Java Bean, compile and you are finished.
https://github.com/johncarl81/parceler
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android orm ioc ui net