Skip to content

Commit

Permalink
fix BaseVlayoutAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwfqin committed Apr 8, 2018
1 parent 9b85a3c commit 9178ca4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'

// 当前项目
implementation 'com.sdwfqin.quicklib:quicklib:1.1.12_alpha_2'
implementation 'com.sdwfqin.quicklib:quicklib:1.1.17'

> 最低支持api16,编译版本27,gradle4.1
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.5.1'
implementation('com.alibaba.android:vlayout:1.2.12@aar') {
implementation('com.alibaba.android:vlayout:1.2.13@aar') {
transitive = true
}
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
Expand Down
8 changes: 4 additions & 4 deletions quicklib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.1.16"
version = "1.1.17"

// gradlew install
// gradlew bintrayUpload
Expand All @@ -13,7 +13,7 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
versionCode 25
versionCode 26
versionName version
}

Expand All @@ -39,11 +39,11 @@ dependencies {
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
implementation('com.alibaba.android:vlayout:1.2.12@aar') {
implementation('com.alibaba.android:vlayout:1.2.13@aar') {
transitive = true
}
compile 'com.qmuiteam:qmui:1.1.0'
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.36'
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.37'
compile 'com.youth.banner:banner:1.4.10'
compile 'com.blankj:utilcode:1.13.5'
compile 'org.greenrobot:eventbus:3.1.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,16 @@ public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int positi
holder.itemView.setLayoutParams(new VirtualLayoutManager.LayoutParams(mLayoutParams));
}

/**
* @param holder
* @param position 当前Adapter的位置
* @param offsetTotal 全局RecyclerView的位置
*/
@Override
protected void onBindViewHolderWithOffset(RecyclerView.ViewHolder holder, int position, int offsetTotal) {
T t;
try {
t = mData.get(offsetTotal);
t = mData.get(position);
} catch (Exception e) {
t = null;
}
Expand Down

0 comments on commit 9178ca4

Please sign in to comment.