- This is a framework for Android APP development. It has the following features: Readable Scalability Easy to use Welcome to join us together to polish it if you have some ideas!
Take MVVM to design the main frame, the universal code has been included into this frame, business and changes has been Stripped
- Transverse dividers (UI, Service, Business, Model, Uitls, IO, Vendor...)
- Vertical stratification (Interface layer, Abstract layer, Base layer, Implement layer)
- Activity/Fragemnt vertical stratification
- Activity/Fragment status switch support(Loading, Content, Empty data, Network error, Other error)
- Pull refresh and loadmore support (Swipe, Custom)
Pure service, it has nothing to do with business
- Management of data
- Management of processes and thread
- Thread queue management
- Event bus
Universal Business
- Sign up & Log in
- Share
- Data reporting
- New version update
Data Model
Data of CRUD
- Adapter
- Cache(Memory, File)
- File
- Database
- Network
- Use dividing line to distinguish Java code and pls follow the order of queue
//----------------------- Absolute Methed ---------------------------------
//----------------------- Override Methed ---------------------------------
//----------------------- Static Methed -----------------------------------
//----------------------- Public Methed -----------------------------------
//----------------------- Protected Methed --------------------------------
//----------------------- Private Methed ----------------------------------
- Override method from base class to implement class, for example:
//----------------------- AbsFragment -------------------------------------
@Override
public void initContentView(View view) {
super.initContentView(view);
loadData();
}
//----------------------- AbsStatusFragment -------------------------------
@Override
protected void initStatusLayout() {
super.initStatusLayout();
}
//----------------------- AbsRecyclerStatusFragment -----------------------
@Override
protected AbsRecyclerAdapter onCreateRecyclerAdapter() {
return super.onCreateRecyclerAdapter();
}
@Override
protected RecyclerView.LayoutManager onCreateLayoutManager() {
return super.onCreateLayoutManager();
}
//----------------------- AbsSwipeRecyclerStatusFragment -----------------------
@Override
public void onPullRefresh() {
//TODO
}
@Override
public void onLoadMore() {
//TODO
}
Get updates on RRFramework's development and subscribe personal blog on wechat.
- Search "RRFramework" in personal blog on wechat
- scan the qrcode below to subscribe
Code released under the [MIT License]