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阅读 174,950评论 25 709
  • 5. 最佳实践 好了终于要点讲自己的东西了,有点小激动。下面这些仅表示个人观点,非一定之规,各位看官按需取用,有说...
    SnowDragonYY阅读 6,959评论 4 36
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,651评论 2 45
  • 事情的发生,不在我的身上,但是,我却是这个故事的叙述者。 一包感冒灵 我隔壁寝室有个呆萌的小哥,名叫白...
    在练腰的老王阅读 1,891评论 0 4
  • 大二的日子比我想象的要无味,生活的重心偏移得无法校准。 四人寝室不过十几平米,却空荡得令人呆滞。我决...
    石五阅读 3,813评论 3 11