Skip to content

SunOfBeach2/FastDevelopFrame

Repository files navigation

FastDevelopFrame


a fast develop frame on android base on EventBus .Retrofit .OkHttp.And having some useful utils.



include

compile 'com.allenliu:fastdevelopframe:1.0.8'

use



  • Activity extends BaseActivity and Fragment extends BaseFragment
  • app Application extends BaseApplication
- Activity or Fragment override method onActivityReceiveEvent or onFragmentReceiveEvent
 by receiving your event ,then just deal with the event.
  • http request just use your api call enqueue and deliver a BaseCallBack.


  • adapter extends BaseDataBindingAdapter if you want to use databinding

eg.

Call<ResponseBody> call = MyApplication.apiService.testHttp();  
call.enqueue(new BaseCallBack<ResponseBody>(EventType.TESTHTTP));

About

develop frame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages