a fast develop frame on android base on EventBus .Retrofit .OkHttp.And having some useful utils.
compile 'com.allenliu:fastdevelopframe:1.0.8'
- Activity extends
BaseActivityand Fragment extendsBaseFragment - app Application extends
BaseApplication- Activity or Fragment override methodonActivityReceiveEventoronFragmentReceiveEventby receiving your event ,then just deal with the event. - http request just use your api call
enqueueand deliver aBaseCallBack. adapterextendsBaseDataBindingAdapterif you want to usedatabinding
eg.
Call<ResponseBody> call = MyApplication.apiService.testHttp();
call.enqueue(new BaseCallBack<ResponseBody>(EventType.TESTHTTP));