Android开源库


一、Image downloading and caching

    

    1.一、picasso

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

    1.二、Glide

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

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

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

// 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.三、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 git

    1.四、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
     github

    1.五、Picasso

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


    1.六、ion(UrlImageViewHelper)

        Android Asynchronous Networking and Image Loading
         https://github.com/koush/ion 

    1.七、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     sql

    1.八、Volley : ImageLoader

        https://android.googlesource.com/platform/frameworks/volley/ 数据库

    1.九、AndroidQuery : ImageLoading

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


二、Internet

    2.一、okhttp

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


    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

三、ORM & IOC

    3.一、KJFrameForAndroid

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

    3.二、xUtils 

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

    3.三、OpenDroid

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

四、UI   


    4.一、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.二、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.一、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.二、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

相关文章
相关标签/搜索