Skip to content

Commit 29e1062

Browse files
AriesHooAriesHoo
authored andcommitted
1、优化:升级UIWidget 其中KeyboardHelper 逻辑优化
2、优化:将TabLayout Fork下来以远程方式加载
1 parent 31dc50a commit 29e1062

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

app/src/main/java/com/aries/library/fast/demo/adapter/SubjectMovieAdapter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public class SubjectMovieAdapter extends BaseItemTouchQuickAdapter<SubjectsEntit
2525
public SubjectMovieAdapter(boolean isShowTop) {
2626
super(R.layout.item_subject_movie);
2727
this.isShowTop = isShowTop;
28-
LoggerManager.i("isShowTop", "isShowTop1:" + isShowTop);
2928
}
3029

3130
@Override
@@ -42,9 +41,4 @@ protected void convert(BaseItemTouchViewHolder helper, SubjectsEntity item) {
4241
labelView.setVisibility(isShowTop ? View.VISIBLE : View.GONE);
4342
RadiusViewHelper.getInstance().setRadiusViewAdapter(((RadiusRelativeLayout) helper.itemView).getDelegate());
4443
}
45-
46-
public SubjectMovieAdapter setShowTop(boolean enable) {
47-
isShowTop = enable;
48-
return this;
49-
}
5044
}

app/src/main/java/com/aries/library/fast/demo/module/activity/MovieBaseFragment.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void beforeSetContentView() {
6464

6565
@Override
6666
public BaseQuickAdapter<SubjectsEntity, BaseViewHolder> getAdapter() {
67-
mAdapter = new SubjectMovieAdapter(mUrl == ApiConstant.API_MOVIE_TOP);
67+
mAdapter = new SubjectMovieAdapter(ApiConstant.API_MOVIE_TOP.equals(mUrl));
6868
changeAdapterAnimation(0);
6969
changeAdapterAnimationAlways(true);
7070
return mAdapter;
@@ -109,22 +109,14 @@ public void onEnd(int star, int end) {
109109

110110
@Override
111111
public void loadData(int page) {
112-
// if (ApiConstant.API_MOVIE_TOP.equals(mUrl)) {
113-
// FastRetrofit.getInstance().setBaseUrl("http://www.baidu.com/");
114-
// Map<String, Object> map = new HashMap<>();
115-
// map.put("test", "test");
116-
// FastRetrofit.getInstance()
117-
// .addHeader(map)
118-
// .addHeader("ht", "ht");
119-
// }
120-
mDefaultPageSize = 15;//接口最大支持单页100
112+
//接口最大支持单页100
113+
mDefaultPageSize = 15;
121114
ApiRepository.getInstance().getMovie(mUrl, page * mDefaultPage, mDefaultPageSize)
122115
.compose(bindUntilEvent(FragmentEvent.DESTROY))
123116
.subscribe(new FastObserver<BaseMovieEntity>(getIHttpRequestControl()) {
124117
@Override
125118
public void _onNext(BaseMovieEntity entity) {
126119
LoggerManager.i("url:" + mUrl);
127-
((SubjectMovieAdapter) mAdapter).setShowTop(mUrl == ApiConstant.API_MOVIE_TOP);
128120
mStatusManager.showSuccessLayout();
129121
FastManager.getInstance().getHttpRequestControl().httpRequestSuccess(getIHttpRequestControl(), entity == null || entity.subjects == null ? new ArrayList<>() : entity.subjects, null);
130122
}

library/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ dependencies {
7878
//滑动返回Activity
7979
api 'cn.bingoogolapple:bga-swipebacklayout:1.2.0@aar'
8080
//快速Tab库
81-
// api 'com.aries.ui.view.tab:FlycoTabLayout_Lib:2.1.2@aar'
8281
api 'com.github.AriesHoo:TabLayout:1.0.1'
8382
// api project(':lib')
8483
//页面事件交互

0 commit comments

Comments
 (0)