Skip to content

Commit

Permalink
修改onCreateView权限
Browse files Browse the repository at this point in the history
  • Loading branch information
Jude95 committed Jun 20, 2016
1 parent 22798c9 commit b0451f6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Beam 是一套基于MVP模式的快速开发框架。定义了一套开发规范。并提供了基于这套规范的Activity,Fragment,Presenter,Model等父类及控件和API等,完成APP开发过程中大量繁琐工作。

##依赖
`compile 'com.jude:beam:2.9.5'`
`compile 'com.jude:beam:2.9.6'`

##MVP概念
MVP模式在Android开发中的使用越来越流行,它十分适合Android。最好先看看[本框架对MVP的理解](http://www.jianshu.com/p/ed2aa9546c2c)
Expand Down
2 changes: 1 addition & 1 deletion beam/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ext {
gitUrl = 'https://github.com/Jude95/RequestVolley'


libraryVersion = '2.9.5'//版本号
libraryVersion = '2.9.6'//版本号
libraryName = 'beam'//项目名字,没什么用
libraryDescription = 'A framwork for Android'//项目描述,没什么用

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ public void onClick(View v) {
}
}

protected ListConfig getConfig(){
public ListConfig getConfig(){
return ListConfig.Default.clone();
}

public int getViewType(int position){
return 0;
}

protected abstract BaseViewHolder<M> getViewHolder(ViewGroup parent,int viewType);
public abstract BaseViewHolder<M> getViewHolder(ViewGroup parent,int viewType);


}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class BeamListActivityPresenter<T extends BeamListActivity,M> extends BeamBasePresenter<T>
implements RecyclerArrayAdapter.OnLoadMoreListener,SwipeRefreshLayout.OnRefreshListener{
DataAdapter mAdapter;
int page = 0;//Re:从0开始的异世界生活
int page = 0;//Re:从0开始
boolean inited = false;//初始化过了,不用显示ProcessBar了
Subscription mAdapterSubscription;
public ReplaySubject<List<M>> mDataSubject = ReplaySubject.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ public void onClick(View v) {
}
}

protected ListConfig getConfig(){
public ListConfig getConfig(){
return ListConfig.Default.clone();
}

public int getViewType(int type){
return 0;
}

protected abstract BaseViewHolder<M> getViewHolder(ViewGroup parent,int viewType);
public abstract BaseViewHolder<M> getViewHolder(ViewGroup parent,int viewType);


}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class BeamListFragmentPresenter<T extends BeamListFragment,M> extends Bea
implements RecyclerArrayAdapter.OnLoadMoreListener,
SwipeRefreshLayout.OnRefreshListener {
DataAdapter mAdapter;
int page = 0;//Re:从0开始的异世界生活
int page = 0;//Re:从0开始
boolean inited = false;//初始化过了,不用显示ProcessBar了
Subscription mAdapterSubscription;
public ReplaySubject<List<M>> mDataSubject = ReplaySubject.create();
Expand Down

0 comments on commit b0451f6

Please sign in to comment.