Skip to content
/ XFrame Public

Component-based development of retrofit+okhttp encapsulated network requests(基于组件化开发,用retrofit+okhttp封装网络请求)

Notifications You must be signed in to change notification settings

xsy2015/XFrame

Repository files navigation

1.retrofit+okhttp+rxjava封装网络请求

GankApi gankApi = DrakeetFactory.getGankIOSingleton();
        gankApi.getNewsList2("1", "10")
                .compose(RxUtil.<JsonDataResponse<List<NewsBean.DataBean>>>normalSchedulers())
                .subscribe(new WebSuccessAction<JsonDataResponse<List<NewsBean.DataBean>>>() {
                    @Override
                    public void onSuccess(JsonDataResponse<List<NewsBean.DataBean>> response) {
                        LogUtils.i(TAG,"data="+response.getData());
                        updateUI(response);
                    }
                }, new WebFailAction());

2.集成qmui改变整个App色调

CoordinatorLayout+QMUIAppBarLayout
在这里插入图片描述

3.图片卡片式左右滑动

图片展示,左右滑动
在这里插入图片描述

4.扫一扫功能实现

作为一个lib组件
在这里插入图片描述

About

Component-based development of retrofit+okhttp encapsulated network requests(基于组件化开发,用retrofit+okhttp封装网络请求)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages