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

相關文章
相關標籤/搜索