AS常用jar_自用

首發 珠珠のBlog

1. orhanobut/logger

allprojects {
    repositories {
        jcenter()
        // 項目gradle中添加 jitpack倉庫
        maven { url "https://jitpack.io" }
    }
}

dependencies {
        //  moudle/gradle中添加
      compile 'com.github.orhanobut:logger:1.12'
}

注意: Logger.init(YOUR_TAG)為初始化入口

2. orhanobut/dialogplus

compile 'com.orhanobut:dialogplus:1.11@aar'

例如:

    private DialogPlus generateDialog(String tag) {

        View contentView = this.getActivity().getLayoutInflater().inflate(R.layout.bundle_filelter_pop, null);

        bundleFilterList = (ListView) contentView.findViewById(R.id.bundle_filter_list);

        cancelBundleFilterBtn = (TextView) contentView.findViewById(R.id.bundle_selfilter_cancel_btn);

        if (catalogs != null && !catalogs.isEmpty()) {
            ArrayAdapter<String> adapter = new ArrayAdapter<>(this.getActivity(), R.layout.simple_list_item_1_center, catalogs);
            bundleFilterList.setAdapter(adapter);
        }

        DialogPlus dialog = DialogPlus.newDialog(this.getActivity())
                .setContentHolder(new ViewHolder(contentView))
                .create();
        return dialog;
}

效果圖如下:

dialogplus.png

3. 懶人框架

compile 'com.jakewharton:butterknife:7.0.0'

4. http封裝-hongyang

compile 'com.zhy:okhttputils:2.4.1'

5. Gson

compile 'com.google.code.gson:gson:2.2.4'
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 173,559評論 25 708
  • 5. 最佳實踐 好了終于要點講自己的東西了,有點小激動。下面這些僅表示個人觀點,非一定之規,各位看官按需取用,有說...
    SnowDragonYY閱讀 2,407評論 4 36
  • afinalAfinal是一個android的ioc,orm框架 https://github.com/yangf...
    passiontim閱讀 15,569評論 2 45
  • 事情的發生,不在我的身上,但是,我卻是這個故事的敘述者。 一包感冒靈 我隔壁寢室有個呆萌的小哥,名叫白...
    在練腰的老王閱讀 287評論 0 4
  • 大二的日子比我想象的要無味,生活的重心偏移得無法校準。 四人寢室不過十幾平米,卻空蕩得令人呆滯。我決...
    石五閱讀 667評論 3 11